简单粗暴,修改idea: File-->Settings-->Editor-->Inspections-->Spring-->Spring Core-->Code-->Autowiring for Bean Class