






关注
码龄 粉丝数 原力等级 --
- 被采纳
- 被点赞
- 采纳率
已结题
Error creating bean with name 'userController': Injection of resource dependencies failed;
收起
- 写回答
- 好问题 0 提建议
- 关注问题
微信扫一扫点击复制链接分享
- 邀请回答
- 编辑 收藏 删除
- 收藏 举报
6条回答
- 关注
码龄 粉丝数 原力等级 --
- 被采纳
- 被点赞
- 采纳率
iweiyi10 2018-03-05 07:07关注把@Resource 改为 @Autowired。
如果你非要用@Resource , 我的意见是加上一个name属性, 如:@Resource(name="userService"),同时 在IUserServiceImpl的类上指明注入的名称,如:@Service("userService")
如果这两种办法都不行,说明你的IUserServiceImpl 压根就没有被spring实例化。本回答被题主选为最佳回答 , 对您是否有帮助呢? 本回答被专家选为最佳回答 , 对您是否有帮助呢? 本回答被题主和专家选为最佳回答 , 对您是否有帮助呢?评论 打赏解决 3无用举报
微信扫一扫点击复制链接分享
评论按下Enter换行,Ctrl+Enter发表内容
报告相同问题?
提交
- 2023-03-02 14:10
SpringBoot报错:Error creating bean with name ‘userController‘: Injection of resource dependencies fail
在码头整点薯条的博客 在GraduationApplication中添加 - 2022-08-08 20:20所遇所思的博客 ssm之Error creating bean with name 'bookServiceImpl': Injection of resource dependencies failed;
- 2021-02-03 14:38上天安排的最大嘛!!的博客 2021-02-03 14:31:14.195 ERROR 14540 --- [ restartedMain] o.s.boot....org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userController': Injection of resource depe
- 2024-07-03 15:20EEEzhenliang的博客 Application run failed;Error creating bean with name 'userController': Injection of resource dependencies failed。报错处理总结
- 2023-05-04 12:46
小白做毕设,遇到报错:Error creating bean with name ‘userController‘: Injection of resource dependencies failed
云边的快乐猫的博客 Error creating bean with name 'userController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'userService... - 2020-04-12 23:0230醒悟的码农的博客 22:48:34.327 [RMI TCP Connection(3)-127.0.0.1] ERROR org.springframework.web.servlet.DispatcherServlet - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error cr...
- 2018-06-02 10:31David_GWEI的博客 (2)entity里面的注解@Table(name="数据库表名") 主键:@Id (3)serviceImpl包下,因为使用的是继承Mapper,只能调用mapper中存在的方法。 源代码较多,查看我的下载里的全注解完成登录操作。
- zeal9s的博客 解决SSH整合时出现的错误,错误如上图所示。 该错误是因为Mybatis中需要的注解,spring没有检测到此注解信息。 错误原因可能有四处: (1):web.xml没有配置spring的上下文环境和核心的监听器 ...param-name&
- 2023-06-19 17:58耶耶耶耶耶烨的博客 http://t.csdn.cn/2GaHT
- 2020-01-31 21:52
Error creating bean with name 'userController': Injection of autowired dependencies failed; nested e
被代码各种调侃的博客 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.facto... - 2017-08-03 00:50凌凌小博客的博客 Springmvc问题 今天,做开发时,刚配置好环境,测试一下环境是否正常,然后日志报错是: org.springframework....Error creating bean with name 'userController': Injection of resource dependencies fai
- 2024-03-27 17:06
【springboot】报错Error creating bean with name ‘xxxController‘: Injection of resource dependencies fail
Simaoya的博客 org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘userAddressController’: Injection of resource dependencies failed; nested exception is org.springframework.... - 2016-11-25 21:57啊哈程序的博客 使用@Resource注入,启动tomcat时抛出异常(解决...org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'adminController': Injection of resource dependencies failed; nested
- 2017-04-07 19:26
Error creating bean with name 'sysUserController': Injection of resource dependencies failed; nested
Hubery_Fight的博客 org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sysUserController’: Injection of resource dependencies failed; nested exception is org.springframework.beans.... - 2018-04-11 14:54阿家兔兔的博客 完整报错信息:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'helloworld': Injection of resource dependencies failed; nested exception is org.springframework....
- 2023-03-07 22:24安河桥·的博客 Error creating bean with name 'userManageController': Injection of resource dependencies failed; nested exception is
- 2017-10-24 02:26西伯利亚的寒流@的博客 使用Dubbox操作,远程访问linux虚拟主机时,本地的服务端无法启动,报错信息 多方查找,百思不得其解检查端口号,显示zeekeeper连接超时无法访问,报错 但是虚拟机IP,ping是OK 检查配置文件的扫描路径没有问题 但是管理...
- 2018-09-07 20:05
【bug】Error creating bean with name 'indexController': Injection of autowired dependencies failed; ne
秦始皇的天下的博客 Error creating bean with name 'indexController': Injection of autowired dependencies failed 2、 Could not autowire field: private java.lang.Long ... - 没有解决我的问题, 去提问