: No qualifying bean of type 'com.picc.hfms.budget.dao.StListServiceDao' available: expected
Posted dongyaotou
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了: No qualifying bean of type 'com.picc.hfms.budget.dao.StListServiceDao' available: expected相关的知识,希望对你有一定的参考价值。
今天在启动微服务项目的时候报错:
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的主要内容,如果未能解决你的问题,请参考以下文章
No qualifying bean of type报错问题处理
No qualifying bean of type '***' available: expected at least 1 bean which qualifies as auto
No qualifying bean of type ‘com.bruceliu.mapper.UserMapper‘
spring注入时报错::No qualifying bean of type 'xxx.xxMapper'