出现Could not autowire. No beans of ‘xxxx‘ type found的错误提示。

出现这个报错运行和编译都不会出现问题

在编辑情况下,无法找不到对应的bean,于是提示找不到对应bean的错误。

解决方式是降低Autowired检测的级别

在setting->inspections->autowining for bean class->Severity 中的error改成warning或者其他级别

这样就解决了!!!