为了账号安全,请及时绑定邮箱和手机立即绑定

springboot mapper注解失败

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.heshen.mapper.PersonsMapper] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:1373) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1119) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:545) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]
... 32 common frames omitted5a693f3c0001613a05780325.jpg
5a693f43000121cd08030632.jpg
5a693f4700013c9804360516.jpg

正在回答

1 回答

http://img1.sycdn.imooc.com//5a697be90001000808320106.jpg

试下这个

1 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

springboot mapper注解失败

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信