IDEA工具开发使用@Autowired注解报错解决方案

使用IDEA工具进行开发的时候,需要@Autowired自动注解bean。使用@Autowired时会报红线,但是项目依然能够运行

 现有的解决的方案是:

打开file-settings或者ctrl+alt+s -> Editor

 

 然后在Inspections 点击搜索栏 输入Spring Core

 

 在Spring Core -> Code -> Autowring for Bean Class中将Severity的级别由之前的error改成warning。

 

 https://blog.csdn.net/m0_43452671/article/details/100514358

posted on 2020-05-06 13:03  小破孩楼主  阅读(674)  评论(0编辑  收藏  举报