码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2015-01-30 15:51:33      阅读:2718      评论:0      收藏:0      [点我收藏+]

标签:spring   aop   exception   

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

标签:spring   aop   exception   

原文地址:http://blog.csdn.net/wuzhongxing/article/details/43307373

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!