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

如图,在Idea的spring工程里,经常会遇到Could not autowire. No beans of 'xxxx' type found的错误提示。

如果不影响程序。一种解决办法是降低Autowired检测的级别,将Severity的级别由之前的error改成warning或其它可以忽略的级别。

 如果影响程序,可能包导错了

import org.springframework.stereotype.Service;

而不是

import com.alibaba.dubbo.config.annotation.Service;
原文地址:https://www.cnblogs.com/zhangyouwu/p/9413786.html