您好,欢迎来到爱够旅游网。
搜索
您的当前位置:首页解决异常:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name

解决异常:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name

来源:爱够旅游网

报错信息:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘receiverController’: Unsatisfied dependency expressed through field ‘service’; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘com.teemlink.sync.service.SyncService’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:586)

2、检查receiverController类调用的service类有没有添加@Service注解

3、检查receiverController类下的Dao层或Mapper层类上有没有添加注解

4、检查启动类上包扫描有没有扫描到receiverController类

欢迎大家阅读,本人见识有限,写的博客难免有错误或者疏忽的地方,还望各位大佬指点,在此表示感谢。觉得本文章有帮助到的,点个赞呗

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- igbc.cn 版权所有 湘ICP备2023023988号-5

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务