Spring自动注入报错原因: idea编辑器Autowiring for Bean Class 的设置 Severity 默认为Error   所以Spring自动注入会报错 !  修改一下就好了

Intellij IDEA 2019 解决Spring自动注入报错的方法

 

相关文章: