2019独角兽企业重金招聘Python工程师标准>>>

严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private cn.springmvc.dao.UserDAO cn.springmvc.service.impl.UserServiceImpl.userDAO; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [cn.springmvc.dao.UserDAO] 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)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:288)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1116)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)

解决办法:

在你的service 实现类 impl 方法前加上 @service。

转载于:https://my.oschina.net/yuhangyes/blog/848597

Error creating bean with name 'userServiceImpl': Injection of autowired dependencies failed相关推荐

  1. Error creating bean with name 'adminUserController': Injection of autowired dependencies failed;

    spring 个坑爹地,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ...

  2. Error creating bean with name 'xxxxServiceImpl': Injection of autowired dependencies failed;

    autowired无法注入 错误: ERROR [localhost-startStop-1] - Context initialization failed org.springframework. ...

  3. Error creating bean with name ‘XXX‘: Injection of autowired dependencies failed解决办法

    springMVC 中的采坑呀 项目结构如图 增加了workFlow 这个文件夹,里面添加的东西都没有报错,但是启动报错,提示dao层不存在,不注意的话都会出现这个问题 请查看自己的配置文件,appl ...

  4. Error creating bean with name 'userServiceImpl'Injection of autowired 分布式新搭建项目无法自动装配 creating bean

    错误:Error creating bean with name 'userServiceImpl': Injection of autowired dependencies failed; nest ...

  5. 关于 Injection of autowired dependencies failed 错误的解决方法

    为什么80%的码农都做不了架构师?>>>    Spring MVC 启动时出现如下错误: org.springframework.beans.factory.BeanCreatio ...

  6. Error creating bean with name ,Unsatisfied dependency expressed through field

    今天打开idea发现项目跑不起来了,一直报这个错 org.springframework.beans.factory.UnsatisfiedDependencyException: Error cre ...

  7. SpringBoot启动报错Error creating bean with name 'xx': Unsatisfied dependency expressed through field xx

    错误如下: 2020-05-11 08:55:21.333 WARN 937516 --- [ main] ConfigServletWebServerApplicationContext : Exc ...

  8. 【终极办法】org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘helloC

    报错信息: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'helloC ...

  9. 【J】BeanCreationException: Error creating bean with name 'shiroFilter' defined in class path resource

    在做SSM博客系统的时候遇到以下报错:org.springframework.beans.factory.BeanCreationException: Error creating bean with ...

最新文章

  1. 07、poly-A内参和杂交内参(arrayanalysis的问题)
  2. python的replace第i个位置_《原神》第80个绯红玉髓位置一览 第80个绯红玉髓如何获取...
  3. QuorumPeerConfig.parse
  4. Java基本流程控制语句
  5. asp 文本转时间_ASP.NET Core界面开发,DevExpress v19.2增强富文本编辑器功能
  6. rhel5中查询设备上采用的未知文件系统
  7. 神经网络的介绍与模型搭建
  8. java webservice接口开发实例_Webservice 接口开发简单例子
  9. 解读《三字经》(7)
  10. 魔兽争霸无法在这个计算机,win10魔兽争霸三无法初始化directx怎么办_win10魔兽争霸三不能初始化directx解决步骤...
  11. (2022-2028年年)全球与中国实验室开发试验(LDT)行业发展调研与市场前景预测报告
  12. Android微博平台设计,基于Android平台的微博系统设计与开发
  13. Summery about show input info bar of MTK
  14. 戴尔笔记本DELL 5557 解锁 CFG lock
  15. Hibernate 验证框架validator
  16. 计算机网络:网间互联协议
  17. 期货的价格与执行价格(期货执行价格是什么意思)
  18. 计算机静音图标无法更改怎么办,电脑声音图标有红叉怎么办?教您解决方法
  19. 拉格朗日中值+柯西中值求极限+对于等价无穷小,等价代换,极限的四则运算法则是根本+一元微积分
  20. 动态规划-leetcode#97-交错字符串

热门文章

  1. SQL Server 2012新增的内置函数尝试
  2. RH Linux 企业5+apache+mysql+php+phpmyadmin的简单配置.
  3. 开机按F1才能进入(启动)系统的解决方案
  4. linux常用指令学习记录
  5. map-side-join inspark
  6. 企业实施ERP有哪些收益分析-要做到心中有数
  7. cocos2d粒子效果
  8. Java集合(一) —— ArrayList
  9. Nagios(装包、文件类型)
  10. 黄聪:浓缩的才是精华:浅析GIF格式图片的存储和压缩(转)