1.点击右下角的小老头
2.点击Configure inspections
3.输入spring找到 spring core中的Autowiring for bean class,选择Severity中的Error改为Warning.