SpringBoot打包没报错,起服务报错

SpringBoot打包没报错,起服务报错,第1张

错误:
Unsatisfied dependency expressed through field ‘XXXXX’; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘com.XXX.XXX.XXX.XXX.XXX’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

解决办法:
查看是否是实现类没有添加@Service注解

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/872074.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-13
下一篇 2022-05-13

发表评论

登录后才能评论

评论列表(0条)

保存