首页 > 编程语言 > 详细

spring boot 的 userRepository无法注入的问题

时间:2018-08-09 12:02:05      阅读:392      评论:0      收藏:0      [点我收藏+]
No qualifying bean of type ‘xxx.xxx.xxx‘ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

 

在启动项上加上

@EnableJpaRepositories(basePackages = "com.ssm.repository")
扫描到指定的包

spring boot 的 userRepository无法注入的问题

原文:https://www.cnblogs.com/oldzhang1222/p/9447893.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!