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

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

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

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

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

 

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

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

 

posted on 2020-08-19 15:08  sunylat  阅读(1301)  评论(0编辑  收藏  举报