spring - Either add CGLIB to the classpath or remove the following @Configuration bean definitions
Framework & Platform/Spring 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
'Framework & Platform > Spring' 카테고리의 다른 글
| spring - constructor-arg index (0) | 2012.11.13 |
|---|---|
| Spring AOP Proxy (0) | 2012.11.13 |
| spring - @PostConstruct, @PreDestroy (0) | 2012.11.09 |
| Spring MVC Framework Tutorial (0) | 2012.11.09 |
| spring - JSR-250(@Resource) (0) | 2012.11.01 |




