Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'b44youhaiyuansuController': Unsatisfied dependency expressed through field 'Service'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.baosight.demo.service.b6.B44youhaiyuansuService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
时间: 2023-08-27 07:10:26 浏览: 231
Caused by: java.lang.ClassNotFoundException: org.apache.commons.collections.Transformer异常
5星 · 资源好评率100%
这个错误是由于Spring框架在注入B44youhaiyuansuController类中的Service字段时,找不到符合条件的B44youhaiyuansuService类型的bean。可能是由于没有正确配置B44youhaiyuansuService类的bean定义,或者没有在B44youhaiyuansuController类上添加@Component或@Service注释。请检查你的代码,确保正确配置了所有依赖项。
阅读全文