解决Idea 出现 "Could not autowire.." 错误

来源:互联网 发布:入骨相思知不知福禄txt 编辑:程序博客网 时间:2024/06/02 02:34

解决Idea 出现 “Could not autowire..” 错误

在使用idea过程中出现了”could not autowire,no Beans of ‘XXX’ found “错误。在项目正常运行的情况下依然报此错误。现将解决方案记录如下

  1. 打开file-settings
    打开file-settings

  2. 打开editor->inspections
    inspection

  3. 右侧搜索框中输入 spring core ,如下图
    这里写图片描述

  4. 选中Autowiring for Bean Class ,将Severity级别改为Warning
    这里写图片描述

  5. 最后点击 apply应用,问题解决

阅读全文
0 0