在Controller层无法注入Service层的对象
来源:互联网 发布:ardupilot 源码 分析 编辑:程序博客网 时间:2024/06/05 05:14
Q: ringframework.beans.factory.BeanCreationException: Error creating bean with name ‘registAction’: Injection of autowired dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException:
Could not autowire field: public com.communication.biz.impl.RegistImpl com.communication.action.RegistAction.registImpl;
nested exception is java.lang.IllegalArgumentException:Can not set com.communication.biz.impl.RegistImpl field com.communication.action.RegistAction.registImpl to com.sun.proxy.$Proxy17
A: 在@Autowired自动注入时, 只能用接口不能用接口的实现类。
阅读全文
0 0
- 在Controller层无法注入Service层的对象
- SpringMVC在Controller层中注入request的坑
- SpringMVC在Controller层中注入request的坑
- SpringMVC在Controller层中注入request的坑
- SpringMVC在Controller层中注入request的坑
- SpringMVC在controller层注入HttpServletRequest
- transactional放置在service层还是controller层
- DAO层,Service层,Controller层、…
- SpringMVC的层:DAO、Service、Controller、View
- controller和service层的一些见解
- 为什么Controller层注入的是Service接口,而不是ServiceImpl实现类
- springMVC中controller层调用service层的方式
- edusoho引发的DAO层,Service层,Controller层、View层的思考
- springmvc注入service层
- Dao层,Controller层、View层 ,Service层的简单了解
- DAO层,Service层,Controller层、View层
- DAO层,Service层,Controller层、View层
- DAO层,Service层,Controller层、View层
- 高内聚低耦合
- 如何构建一个反电信网络诈骗基础模型
- BZOJ 2216: [Poi2011]Lightning Conductor 决策单调性DP
- CS Academy Round #30 (Div. 2 only) C.Constant Sum(树状数组,区间修改,单点查询模板)
- 关于dtd的简单内容
- 在Controller层无法注入Service层的对象
- Assets的使用和SoundPool播放音频
- Flask: 路由
- oracle数据库(关系型数据库1)
- jQuery的属性与样式之切换样式.toggleClass()
- eclipse 安装maven插件报错
- 文章标题
- POJ 1173 Bar Codes 笔记
- ubuntu安装搜狗输入法