but was actually of type [com.sun.proxy.$Proxy13]
ssm在注解整合时提示Bean named 'studentservice' is expected to be of type 'com.shuai.service.imp.studentServiceImpl',but was actually of type [com.sun.proxy.$Proxy13]
错误在(这里应该是全部还有dao层)
@Controller
public class testController {
@Resource
private testImpl testImpl;
@RequestMapping("/addFload")
public void addFload(String fname){
fload fload = new fload();
fload.setfName(fname);
testImpl.addTest(fload);
}
}
这里不应该是接口实现类。应该是接口
@Controller
public class testController {
@Resource
private testService testImpl;
@RequestMapping("/addFload")
public void addFload(String fname){
fload fload = new fload();
fload.setfName(fname);
testImpl.addTest(fload);
}
}
but was actually of type [com.sun.proxy.$Proxy13]相关推荐
- Bean named 'testImpl' must be of type [lcw.serviceimpl.testImpl], but was actually of type [com.sun.
最近在写ssm的时候遇见了一个这样的错误Bean named 'testImpl' must be of type [lcw.serviceimpl.testImpl], but was actual ...
- but was actually of type 'com.sun.proxy.$Proxy**'的两种解决方法
错误描述:Caused by: org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named '****' ...
- jmap报错unknown CollectedHeap type : class sun.jvm.hotspot.gc_interface.CollectedHeap
jmap报错 [root@host-10-0-197-189 service]# jmap -heap 12139 Attaching to process ID 12139, please wait ...
- Cannot convert value of type 'com.sun.proxy.$Proxy10 implementing com.shuai.
ssm之前修改了包名后提示Cannot convert value of type 'com.sun.proxy.$Proxy10 implementing com.shuai. 在applicati ...
- The type com.sun.star.lang.XEventListener cannot be resolved. It is indirectly referenced from requi
The type com.sun.star.lang.XEventListener cannot be resolved. It is indirectly referenced from requi ...
- Bean named '' is expected to be of type '' but was actually of type 'com.sun.proxy.$Proxy30' 异常解决
在我们使用Spring声明式事务管理的途中,有可能会出现以下的异常: Bean named '' is expected to be of type '' but was actually of ty ...
- Bean named XXX is expected to be of type XXX but was actually of type 'com.sun.proxy.$Proxy28'
现象 运行Spring Web程序时报出错误 BeanNotOfRequiredTypeException: Bean named 'loginLogService' is expected to b ...
- Bean named 'rateBoardService' is expected to be of but was actually of type 'com.sun.proxy.$Proxy69'
Bean named 'rateBoardService' is expected to be of type 'xxxx' 今天在写一个测试用例的时候遇到个Bug,提示语如下: 可以只看第一行 or ...
- Bean named**is expected to be of type**but was actually of type ‘com.sun.proxy.$Proxy**的解决办法
错误描述: Caused by: org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named '****' ...
最新文章
- react非常适合入门者学习使用的后台管理框架
- python对象编程例子-python面向对象编程练习
- Python学习笔记(Ⅰ)——Python程序结构与基础语法
- 程序员的时间管理哲学 —— 如何更好的利用我们的时间
- 道路交通实时流量监控预测系统(大讲台)
- python利用cookie模拟登录
- c# webbrowser 获取用户选中文字
- 开源当自强:我们不是“便宜货”
- android 获取栈顶activity,Android : 如何得到Activities栈顶的Activity名称
- Docker 使用 docker push 命令将镜像推送到 Docker Hub 服务器上
- linux全网备份的原理,Linux面试题分享:Rsync(全网备份)和NFS(文件系统)
- 一位射频技术支持工程师的工作感悟
- Oracle之同义词(SYNONYM)
- CC1110使用433MHz收发数据
- 三十.基于国民MCU 的COMP与ADC结合的实战功能模拟案例
- 程序员全职接单一个月的感触
- java网络编程---使用URL爬取歌曲
- No.1_NABCD模型分析
- 音视频基础知识——素材理解
- Apple苹果产品MFi设计及标准汇总
热门文章
- 继腾讯后 B站又获阿里投资!加速二次元电商商业化
- 嵌入式gdbserver远程调试【原创】
- 开发到底要不要自己做测试?
- OAuth 授权的工作原理是怎样的?
- 我的内核学习笔记9:Intel内部看门狗iTCO_wdt驱动
- 遇到一个把.o文件strip后出现的奇怪问题
- Gradle+IDEA使用说明
- Tomcat新版本旧版本下载(Windows和Linux)
- alphac测试和bata测试区别_绝缘电阻测试仪和接地电阻测试仪的测试方式区别
- 【Spring】Spring Property ‘sqlSessionFactory‘ or ‘sqlSessionTemplate‘ are required