dortorwu 2021-08-14 09:01 采纳率: 0%
浏览 2973

学长们,请问我这些报错怎么解决出现Unsatisfied dependency expressed through field 'classInfoService'

** org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'typeController': Unsatisfied dependency expressed through field 'classInfoService'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.wuhaihong.service.ClassInfoService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}**

我的注释已经加了,扫描器也没有问题,怎么还出现这样的,service层实现出错,我service层也只有一个接口和实现类.

  • 写回答

1条回答 默认 最新

  • 编号灬9527 2021-08-14 09:31
    关注

    这个错误信息就是没有这个bean,自己再去检查检查吧

    评论

报告相同问题?

问题事件

  • 创建了问题 8月14日