共计 521 个字符,预计需要花费 2 分钟才能阅读完成。
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'XXX': Unsatisfied dependency expressed through field 'XXX'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.custom.interfaces.TaskService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
网络找到的答案都是说没有贴 Service 注解。
如果你存在援用的状况下,须要去注意你所援用的包有没有更新。因为旧的援用包中找不到新的服务,导致无奈创立 Bean 的景象
正文完