처음부터 차근차근

@Configuration 오류 본문

Error&Warning

@Configuration 오류

_soyoung 2021. 9. 23. 17:48
반응형

CGLIB is required to process @Configuration classes. Either add CGLIB to the classpath or remove the following @Configuration bean definitions: 

원인은 CGLIB dependency를 추가해주지 않았기 때문이다.

 

 

해결 : pom.xml에 CGLIB dependency를 추가한다.

(pom.xml에 아래의 코드를 추가한다.)

<dependency>
  	<groupId>cglib</groupId>
  	<artifactId>cglib</artifactId>
  	<version>2.2.2</version>
</dependency>

 

반응형
Comments