스프링에서 자바 코드에 의한 빈 등록: @Configuration클래스의 @Bean메소드를 테스트 하다가
아래와 같은 오류가 나올수 있다.
CGLIB is required to process @Configuration classes. Either add CGLIB to the classpath or remove the following @Configuration bean definitions
이럴때는 아래와 같이 등록 해줘야 한다.(버전은 알아서..)
<dependency> <groupId>cglib</groupId> <artifactId>cglib</artifactId> <version>2.2.2</version> </dependency>
'프로그래밍 > SPRING 3.X' 카테고리의 다른 글
현재 프로젝트에 정의된 RequestMapping 정보 확인하기 (0) | 2013.03.19 |
---|---|
@RequestMapping 핸들러 매핑 (0) | 2013.03.18 |
jUnit에서 assertTha과 is에 대한 import문 (0) | 2013.03.13 |
간단한 스프링 웹 프로젝트 생성 (0) | 2013.03.11 |
스프링 빈 스코드(Bean scope) 종류 (0) | 2013.03.03 |