Bean named '*' must be of type [*], but was actually of type [com.sun.proxy.$Proxy34]
来源:互联网 发布:传感器数据采集软件 编辑:程序博客网 时间:2024/05/16 02:48
org.springframework.beans.factory.BeanNotOfRequiredTypeException:
Bean named 'menuDao' must be of type [com.panzy.dao.MyMenuDao], but was actually of type [com.sun.proxy.$Proxy34]
检查注解的名字是否和类型名一致,Spring注入失败导致的错误。
修改前
@Resourceprivate MyMenuDao menuDao;
修改后
@Resourceprivate MyMenuDao myMenuDao;
或
@Resource("myMenuDao")private MyMenuDao menuDao;
1 0
- Bean named '*' must be of type [*], but was actually of type [com.sun.proxy.$Proxy34]
- Bean named 'xxx' must be of type xxx , but was actually of type [com.sun.proxy.$Proxy189]
- BeanNotOfRequiredTypeException: Bean named "" must be of type [] but was actually of type [com.sun.p
- Bean named 'testImpl' must be of type [lcw.serviceimpl.testImpl], but was actually of type [com.sun.
- BeanNotOfRequiredTypeException: Bean named "" must be of type [] but was actually of type [com.su
- Getting Spring Error “Bean named 'x' must be of type [y], but was actually of type [$Proxy]” in Jenk
- 解决must be of type [com.bysj.services.CompanyServiceImp], but was actually of type [com.sun.proxy.$Pr
- 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]”
- is expected to be of type but was actually of type 'com.sun.proxy.$Proxy70'
- Bean named 'transactionAdvice' must be of type [org.aopalliance.aop.Advice], but was actually of typ
- Bean named 'userDao' must be of type [cn.itcast.nsfw.user.dao.UserDao], but was actually of type [cn
- Bean named 'BService' is expected to be of type 'path1' but was actually of type 'path2'
- ......but was actually of type [sun.proxy.$Proxy8]
- but was actually of type 'com.sun.proxy.$Proxy**'的两种解决方法
- Ubantu操作系统下搭建FTP服务器
- SQL与NoSQL(MongoDB)数据库的对应关系图表
- Android开发之SQLite插入数据优化
- 如何使用Android Studio把自己的Android library分享到jCenter和Maven Central
- 卡尔曼算法笔记---思想和实际应用物理含义的理解
- Bean named '*' must be of type [*], but was actually of type [com.sun.proxy.$Proxy34]
- WebView基本用法
- 软件版本号规范
- iphone数据存储之-- Core Data的使用(一)
- 设计模式GOF23——工厂模式
- 回味经典——uboot1.1.6 之 第二阶段 第三阶段
- listView实现圆角显示(第一个是左上角和右下角有圆角 中间没有圆角 最后一个是右下角和左下角圆角)
- Android ADB命令 浅试
- WebView代码交互