
直接找到IndexItemCalculateInfoServiceImpl类,然后使用@Lazy
原代码:

修改后:

java
private final PrepareIndexItemInfoService prepareIndexItemInfoService;
@Autowired
public IndexItemCalculateInfoServiceImpl(@Lazy PrepareIndexItemInfoService service) {
this.prepareIndexItemInfoService = service;
}
这个只是临时方案,因为项目最近在迁移,也不可能重构别人的代码,只能用这种方式了。。。