Commit b2e23b68 authored by tianbo's avatar tianbo

refactor(amos-boot-module-jg): 使用 @Lazy 注解优化依赖注入

- 在 CommonServiceImpl 中为 JgEquipTransferServiceImpl 和 JgReformNoticeServiceImpl 添加 @Lazy 注解 - 在 IdxBizJgRegisterInfoServiceImpl 中为 CommonServiceImpl 添加 @Lazy 注解
parent 6fcaa970
......@@ -223,6 +223,7 @@ public class CommonServiceImpl implements ICommonService {
@Autowired
@Lazy
JgEquipTransferServiceImpl jgEquipTransferServiceImpl;
@Lazy
@Autowired
JgReformNoticeServiceImpl jgReformNoticeService;
@Autowired
......
......@@ -66,6 +66,7 @@ import org.elasticsearch.search.sort.SortOrder;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Lazy;
import org.springframework.core.io.Resource;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.ValueOperations;
......@@ -308,6 +309,8 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
private IdxBizJgProjectContraptionServiceImplService idxBizJgProjectContraptionService;
@Value("classpath:/json/urlInfo.json")
private Resource urlInfo;
@Lazy
@Autowired
private CommonServiceImpl commonServiceImpl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment