工具: IntelliJ IDEA 2019.3.4 x64 Ultimate,maven项目;

现象:如下图所示,出现Could not autowire. No beans of '' type found的错误提示;

IDEA - 错误提示 Could not autowire. No beans of '' type found

解决方法:降低Autowired检测的级别,改为warning

设置路径:file -> settings -> editor -> Inspections ->Spring -> Spring Core -> Code -> Autowiring for Been Class;

IDEA - 错误提示 Could not autowire. No beans of '' type found

 

其他解决方案及本文参考文档地址:

https://blog.csdn.net/u012453843/article/details/54906905

https://www.cnblogs.com/jamieYu/p/5681886.html

若不想每个新项目都重新设置一遍,则可参考下面链接设置:

https://blog.csdn.net/zhouky1993/article/details/83013235

参考:

https://blog.csdn.net/zhouky1993/article/details/83012440

 

相关文章:

  • 2021-12-16
  • 2021-12-10
  • 2021-05-25
  • 2021-10-14
  • 2021-04-23
  • 2022-01-19
  • 2021-05-29
  • 2021-08-05
猜你喜欢
  • 2021-08-14
  • 2021-07-09
  • 2021-11-29
  • 2022-12-23
  • 2021-10-02
  • 2021-05-31
相关资源
相似解决方案