打开Settings -> Editor -> Inspections -> Spring -> Spring Core -> Code,找到Incorrect autowiring in Spring bean components,将代码审查级别从Error修改为Warning