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

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

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)}

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

原因:

 

posted @ 2020-03-10 23:57  ~码铃薯~  阅读(455)  评论(0编辑  收藏  举报