Description:
Field iDataAccessClient in com.xxx.service.impl.EquipSyncServiceImpl required a bean of type 'com.xxx.controller.IDataAccessClient' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'com.xxx.controller.IDataAccessClient' in your configuration.
如果是spring项目,则检查扫描路径或xml配置,确保该类在正确的扫描路径下。
还有一种情况,idea显示已注入,但运行后仍提示注入问题,则考虑其他注解的扫描路径是否正确,比如enableFeignClients等