14:30:49,629 ERROR DispatcherServlet:503 - Context initialization failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘checkItemServiceImpl‘: Unsatisfied dependency expressed through field ‘checkItemDao‘; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘com.health.dao.CheckItemDao‘ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
在backend中把provider当依赖引入了,backend中有自己本地的一份provider代码参与运行,但是backend里面容器中没有dao的,所以就一直报错dao注入失败
原文:https://www.cnblogs.com/maomaodesu/p/12500882.html