报错如下图:原本使用的是:
@Autowired
private IGcProgressIntegratedConstructionService gcProgressIntegratedConstructionService;
修改成:
private static final IGcMyprojectProfitMarginMeasurementService gcProfitMarginMeasurementService = SpringUtils.getBean(IGcMyprojectProfitMarginMeasurementService.class);
后面的是需要注入的类名的class,final后面的是类名 和 别名,这样就可以正常引用了