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

错误原因:Autowired 根据类型去spring容器找,找不到那个类,就会报错 解决方法:在springboot启动类上添加注解 @ComponentScan(basePackages = { “com.jeff” })
相关文章
相关标签/搜索