The injection point has the following annotations: - @org.springframework.beans.factory.annotation.

哈哈 阅读:16726 2021-04-01 11:34:01 评论:0

在这里插入图片描述
错误原因:Autowired 根据类型去spring容器找,找不到那个类,就会报错
解决方法:在springboot启动类上添加注解 @ComponentScan(basePackages = { “com.jeff” })
在这里插入图片描述

声明

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

关注我们

一个IT知识分享的公众号