24282 1 년 전
부모
커밋
47bcffad79
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      sd-wln/src/main/java/com/sd/wln/scheduled/WlnSyncTask.java

+ 2 - 1
sd-wln/src/main/java/com/sd/wln/scheduled/WlnSyncTask.java

@@ -3,13 +3,14 @@ package com.sd.wln.scheduled;
 import com.sd.wln.service.WlnOrderService;
 import com.sd.wln.service.WlnOrderService;
 import com.sd.wln.service.WlnSkuService;
 import com.sd.wln.service.WlnSkuService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Profile;
 import org.springframework.scheduling.annotation.Scheduled;
 import org.springframework.scheduling.annotation.Scheduled;
 import org.springframework.stereotype.Component;
 import org.springframework.stereotype.Component;
 
 
 /**
 /**
  * 同步万里牛数据(本地环境不执行同步逻辑)
  * 同步万里牛数据(本地环境不执行同步逻辑)
  */
  */
-// @Profile({"test", "prod"})
+@Profile({"test", "prod"})
 @Component
 @Component
 public class WlnSyncTask {
 public class WlnSyncTask {