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;

 

posted @ 2018-08-03 13:59  zhang_you_wu  阅读(219)  评论(0编辑  收藏  举报