Could not autowire解决方法 --INtellij IDEA @Autowired取消提示

Idea @Autowired取消提示
Spring bean通过@Autowired注入,spring auto scan配置,在编辑情况下,无法找不到对应的bean,于是提示找不到对应bean的错误。
但build项目是能正常运行的。
可在File -- Settings -- Inspections。在Spring Model -- Autowring for Bean Class 中,

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

原文链接:https://blog.csdn.net/jack__love/article/details/100726718

原文地址:https://www.cnblogs.com/james641/p/11677329.html