idea中@Autowired注解下变量报红 错误提示: 解决方法: settings->Editor->Inspections,在搜索框中搜索Spring,找到"Autowiring for Bean Class",取消后面的"√"保存即可! 完成!