스프링 레거시로 @configuration 어노테이션 사용시 아래와 같은 오류가 나타날 수 있다.
Exception in thread "main" java.lang.IllegalStateException: CGLIB is required to process @Configuration classes. Either add CGLIB to the classpath or remove the following @Configuration bean definitions: [applicationConfig]
해결방법
pom.xml에서 아래와 같이 추가하고 이클립스에서 maven -> Update Project를 클릭해준다.
<!-- cglib -->
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<version>3.1</version>
</dependency>
'Spring' 카테고리의 다른 글
[스프링] 스프링 JdbcTemplate 사용하기 (0) | 2023.02.17 |
---|---|
[스프링] 스프링 MVC 게시판 (0) | 2023.02.17 |
[스프링] Validator를 이용한 서버 유효성 검사 (0) | 2023.02.16 |
[스프링 에러] An internal error occurred during: "Requesting Java AST from selection".com.ibm.icu.text.UTF16.isSurrogate(C)Z (1) | 2023.02.13 |
[스프링 에러] @PostConstruct @PreDestroy 에러 빨간 밑줄 (0) | 2023.02.13 |