Caused by: org.springframework.aop.framework.AopConfigException: Cannot proxy target class because CGLIB2 is not available. Add CGLIB to the class path or specify proxy interfaces.
问题
需要加上:cglib-nodep-2.1_3.jar
(不能是cglib-nodep-2.2.jar,或者导入asm-2.2.3.jar和cglib-2.2.jar )
pom中加入依赖:
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
<version>2.1_3</version>
</dependency>
OK,问题解决
对了,我用的是spring3.1.3