Browse Source

修改测试环境配置文件

tianboguang 2 years ago
parent
commit
9c46287758
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/main/java/com/fdkankan/modeling/job/EcsJob.java

+ 2 - 0
src/main/java/com/fdkankan/modeling/job/EcsJob.java

@@ -5,6 +5,7 @@ import com.fdkankan.rubbersheeting.ScalingService;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Lazy;
 import org.springframework.stereotype.Component;
 import org.springframework.util.ObjectUtils;
 
@@ -19,6 +20,7 @@ public class EcsJob {
     private static final Logger log = LoggerFactory.getLogger(EcsJob.class);
 
     @Autowired
+    @Lazy
     private ScalingService scalingService;
 
     @PostConstruct