Spring aop Cannot subclass final class class com.sun.proxy

时间:2015-01-30 15:51:33   收藏:0   阅读:2718
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"/>


红色部分去掉

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!