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

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


版权声明:本文为weixin_45739720原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。