提交 baf3233b 作者: 沈振路

添加懒加载

上级 c4b72ec8
......@@ -31,6 +31,7 @@ import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
......@@ -79,6 +80,7 @@ public class CustomerServiceCommonAsyncComponent {
private RabbitTemplate rabbitTemplate;
@Resource
private CompanyAcquisitionLinkService companyAcquisitionLinkService;
@Lazy
@Autowired
private CrowdPackageService crowdPackageService;
......
......@@ -34,6 +34,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;
......@@ -62,6 +63,7 @@ public class CrowdPackageServiceImpl extends ServiceImpl<MaterialCrowdPackageMap
private RegisterUserEntityMapper userEntityMapper;
@Autowired
private RedisTemplate redisTemplate;
@Lazy
@Autowired
private CustomerServiceCommonAsyncComponent asyncComponent;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论