lyhzzz 3 месяцев назад
Родитель
Сommit
5e6a999c1d

+ 6 - 0
src/main/java/com/fdkankan/manage/httpClient/service/OverallService.java

@@ -23,6 +23,7 @@ import com.fdkankan.redis.util.RedisUtil;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Lazy;
 import org.springframework.scheduling.annotation.Async;
 import org.springframework.stereotype.Service;
 
@@ -30,14 +31,19 @@ import org.springframework.stereotype.Service;
 @Slf4j
 public class OverallService {
     @Autowired
+    @Lazy
     OverallClient overallClient;
     @Autowired
+    @Lazy
     RabbitMqProducer rabbitMqProducer;
     @Autowired
+    @Lazy
     IDownService downService;
     @Autowired
+    @Lazy
     FyunConfig fyunConfig;
     @Autowired
+    @Lazy
     RedisUtil redisUtil;
 
     private static String appId ="BDA385EC848C1A425F746869011C8D23";