解决方法,在repository加一个注解。如下图所示:
@Component

 

posted on 2018-01-31 14:53  锋齐叶落  阅读(4440)  评论(1)    收藏  举报