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

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

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

 

 

出自:http://blog.csdn.net/qq853447917/article/details/50460374

猜你喜欢

转载自fengxiaoshuang429201406254717.iteye.com/blog/2351493