BeanNotOfRequiredTypeException: Bean named "" must be of type [] but was actually of type [com.sun.p
来源:互联网 发布:阿里云企业邮箱的smtp 编辑:程序博客网 时间:2024/05/22 18:44
org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'applicationService' must be of type [com.meta.dbcenter.application.service.impl.ApplicationServiceImpl], but was actually of type [com.sun.proxy.$Proxy7]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:360)
原因1:
使用了jdk的自动动态代理,需要在<aop:aspectj-autoproxy中添加proxy-target-class="true" 如下:
<aop:aspectj-autoproxy proxy-target-class="true"/>
0 0
- BeanNotOfRequiredTypeException: Bean named "" must be of type [] but was actually of type [com.sun.p
- BeanNotOfRequiredTypeException: Bean named "" must be of type [] but was actually of type [com.su
- Bean named '*' must be of type [*], but was actually of type [com.sun.proxy.$Proxy34]
- Bean named 'testImpl' must be of type [lcw.serviceimpl.testImpl], but was actually of type [com.sun.
- Bean named 'xxx' must be of type xxx , but was actually of type [com.sun.proxy.$Proxy189]
- Bean named 'deptDao' must be of type [com.zttech.sys.dao.IGroupDao], but was actually of type [com.s
- “Bean named XXX must be of type[XXX], but was actually of type[XXX]”
- Bean named must be of type , but was actually of type
- Bean named '*' must be of type [*], but was actually of type [*] with root case
- “Bean named XXX must be of type[XXX], but was actually of type[XXX]”
- Bean named 'transactionAdvice' must be of type [org.aopalliance.aop.Advice], but was actually of typ
- Getting Spring Error “Bean named 'x' must be of type [y], but was actually of type [$Proxy]” in Jenk
- Bean named 'userDao' must be of type [cn.itcast.nsfw.user.dao.UserDao], but was actually of type [cn
- 解决must be of type [com.bysj.services.CompanyServiceImp], but was actually of type [com.sun.proxy.$Pr
- BeanNotOfRequiredTypeException 异常:but was actually of type 'com.sun.proxy.$Proxy17'
- 使用spring遇到"BeanNotOfRequiredTypeException......but was actually of type [com.sun.proxy.$Proxy18]"异常
- 使用spring遇到"BeanNotOfRequiredTypeException......but was actually of type [com.sun.proxy.$Proxy18]"异常
- Bean named 'BService' is expected to be of type 'path1' but was actually of type 'path2'
- 好友js拖动分组
- Ubuntu下安装QQ国际版
- 安卓视频锦集
- [NOIP2013][vijos1850]小朋友的数字(dp+贪心)
- pyWidget初试
- BeanNotOfRequiredTypeException: Bean named "" must be of type [] but was actually of type [com.sun.p
- 安卓 制作补间动画,帧动画
- cAPS lOCK
- 使用TPC-H对Hive测试
- c++初学之变量类型
- ExpandableListView 添加边框首字母点击监听代码(索引)
- 从今天开始坚持写blog
- Ceph PG的不同状态
- Qt将文件夹压缩成ZIP文件