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