在Preferences中如下设置,即可解除报红错误: 将Autowiring for Bean Class的Severity级别设置为Warning 文章永久链接:https://tech.souyunku.com/46038