Intellij Idea @Autowired取消提示

Intellij Idea @Autowired取消提示

 

Spring bean通过@Autowired注入,spring auto scan配置,在编辑情况下,无法找不到对应的bean,于是提示找不到对应bean的错误。

但build项目是能正常运行的。

可在File -- Settings -- Inspections。在Spring Core-- Autowring for Bean Class 中,

将Severity的级别由之前的error改成warning。

posted on 2017-12-26 18:04  街机玩家  阅读(198)  评论(0编辑  收藏  举报

导航