|
@@ -3,7 +3,6 @@ package com.example.mdd.job;
|
|
|
import com.example.mdd.service.XMODownload;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
-import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@@ -18,7 +17,7 @@ public class DownloadXMO {
|
|
|
|
|
|
//xmo天气 从0点开始 每3小时调用一次
|
|
|
//@Scheduled(fixedDelay = 600000)
|
|
|
- @Scheduled(cron = "0 0 0/3 * * *")
|
|
|
+ //@Scheduled(cron = "0 0 0/3 * * *")
|
|
|
public void download() {
|
|
|
xmoDownload.download();
|
|
|
}
|