Injection of autowired dependencies failed nested exception is Could not autowire field No qualify
来源:互联网 发布:新歌声网络战队都有谁 编辑:程序博客网 时间:2024/06/05 21:59
Error creating bean with name 'userInfoController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private cn.xiniu.core.service.basicUser.UserInfoService cn.xiniu.core.controller.UserInfoController.userInfoService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [cn.xiniu.core.service.basicUser.UserInfoService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
解决:
原因是service层的没有写注解(service).加上 就解决了
阅读全文
0 1
- Injection of autowired dependencies failed nested exception is Could not autowire field No qualify
- Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.Be
- ean with name 'indexController': Injection of autowired dependencies failed; nested exception is
- 异常:Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentExceptio
- @Autowired:【Could not autowire field:】
- Injection of autowired dependencies failed
- Injection of autowired dependencies failed;
- Injection of autowired dependencies failed
- Injection of autowired dependencies failed
- error:Injection of autowired dependencies failed
- SpringMVC 错误分析:@Autowired Could not autowire field
- SpringMVC 错误分析:@Autowired Could not autowire field
- SpringMVC 错误分析:@Autowired Could not autowire field
- SpringMVC 错误分析:@Autowired Could not autowire field
- Could not autowire field
- Could not autowire field
- mybatis+spring boot, @Autowired 提示Could not autowire. No beans of … type found
- Error creating bean with name '****': Injection of autowired dependencies failed
- Java IO知识点总结二(字节流)
- HDU 2066 一个人的旅行
- 求最大子数组和问题
- spring in action解读一
- hdu 多校联赛 Questionnaire
- Injection of autowired dependencies failed nested exception is Could not autowire field No qualify
- maven 引入外部jar包的几种方式
- RenderMonkey基本使用方法
- Java和Scala学习日记2
- HYSBZ 1191HYSBZ 1191(二分图最大匹配裸题)
- mediabutton控制教程
- 万维链的应用场景(四)
- 数据结构——字符串(未完)
- Vector的所有函数