美文网首页
org.springframework.beans.factor

org.springframework.beans.factor

作者: Slience无言 | 来源:发表于2016-07-06 10:59 被阅读0次

http://stackoverflow.com/questions/8391944/getting-spring-error-bean-named-x-must-be-of-type-y-but-was-actually-of-ty

org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'british' must be of type [service.British], but was actually of type [com.sun.proxy.$Proxy9]

解决办法:在applicationContext.xml中添加<aop:config proxy-target-class="true"/>设置为CGLIB代理就好

相关文章

网友评论

      本文标题:org.springframework.beans.factor

      本文链接:https://www.haomeiwen.com/subject/cgrkjttx.html