原文:Bean named 'XXX' is expected to be of type [com.***.XXX] but was actually of type [com.sun.proxy.$Proxy*]

spring项目 运行本地testcase,发现无法启动程序,报如下错误: 我们看其中的nest exception信息: org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named TLimitAddServiceImpl is expected to be of type com.cn.yft.ora ...

2021-02-22 20:32 0 344 推荐指数:

查看详情

'pw.fengya.tx.BookService' but was actually of type 'com.sun.proxy.$Proxy1

最近在学习Spring框架的时候,很容易犯下的一个错误,需要在配置文件中打开aop命名空间,并设置如下属性: 不知道为什么,在使用注解配置bean的时候,很容易报的一个错,尤其是自定义的接口与实现类 ...

Sun Mar 25 00:05:00 CST 2018 1 3125
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM