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

来源:互联网 发布:js 事件对象 target 编辑:程序博客网 时间:2024/06/08 01:23
tellij Idea @Autowired取消提示
Spring bean通过@Autowired注入,spring auto scan配置,在编辑情况下,无法找不到对应的bean,于是提示找不到对应bean的错误。
但build项目是能正常运行的。
可在File -- Settings -- Inspections。在Spring Model -- Autowring for Bean Class 中,

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



3 0
原创粉丝点击