nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘bean‘: Post-processing of the FactoryBean‘s object failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate
CGLIB subclass of class [class com.sun.proxy.$Proxy42]: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Cannot subclass final class class com.sun.proxy.$Proxy42
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:289)
<aop:aspectj-autoproxy proxy-target-class="true"/>
红色部分去掉
Spring aop Cannot subclass final class class com.sun.proxy
原文:http://blog.csdn.net/wuzhongxing/article/details/43307373