解决Could not autowire. No beans of ‘xxxx‘ type found问题

遇到Could not autowire. No beans of ‘xxxx’ type found的错误提示

在Idea的spring工程里,经常会遇到Could not autowire. No beans of ‘xxxx’ type found的错误提示。但程序的编译和运行都是没有问题的,这个错误提示并不会产生影响。

解决Could not autowire. No beans of ‘xxxx‘ type found问题

解决方案

解决Could not autowire. No beans of ‘xxxx‘ type found问题
降低Autowired检测的级别,将Severity的级别由之前的error改成warning或其它可以忽略的级别。