Framework & Platform/Spring

spring - Either add CGLIB to the classpath or remove the following @Configuration bean definitions

linuxism 2012. 11. 12. 22:29


토비의 스프링3 책과 함께 연습중 어플리케이션 컨텍스트를 적용하니 바로 다음과 같은 예외가 발생했다.

1
2
3
4
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: [daoFactory]


pom.xml 에 다음과 같이 기술해주어 해당 라이브러리를 다운받아야 한다.
1
2
3
4
5
6
<!-- cglib -->
<dependency>
    <groupId>com.kenai.nbpwr</groupId>
    <artifactId>net-sf-cglib</artifactId>
    <version>2.1.3-201003011305</version>
</dependency>


출처 - http://www.takeone.pe.kr/290