IntelliJ Idea错误提示 Could not autowire. No beans of '' type found

工具: IntelliJ IDEA 2018.1.6 x64 Ultimate,gradle项目;

 

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

 

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

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

IntelliJ Idea错误提示 Could not autowire. No beans of '' type found_第1张图片

 

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

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

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

 

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

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

 

你可能感兴趣的:(IDEA)