码迷,mamicode.com
首页 > 其他好文 > 详细

: No qualifying bean of type 'com.picc.hfms.budget.dao.StListServiceDao' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations:

时间:2020-03-11 01:25:28      阅读:85      评论:0      收藏:0      [点我收藏+]

标签:pre   creat   目的   自己   自己的   bean   efi   expressed   org   

今天在启动微服务项目的时候报错:

Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘budgetServiceImpl‘: Unsatisfied dependency expressed through field ‘stListServiceDao‘; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘com.picc.hfms.budget.dao.StListServiceDao‘ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

自己的项目是没有报错的。这是怎么回事呢?

原因:

技术图片

 

: No qualifying bean of type 'com.picc.hfms.budget.dao.StListServiceDao' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations:

标签:pre   creat   目的   自己   自己的   bean   efi   expressed   org   

原文地址:https://www.cnblogs.com/dongyaotou/p/12459830.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!