Could not autowire. No beans of 'xxxx' type found解决办法

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

解决方案:降低Autowired检测的级别,将Severity的级别由之前的error改成warning或其它可以忽略的级别。

猜你喜欢

转载自www.cnblogs.com/flyinghome/p/12100315.html