diff --git a/springboot-schedule/src/main/java/com/xncoding/pos/jobs/HeartbeatJob.java b/springboot-schedule/src/main/java/com/xncoding/pos/jobs/HeartbeatJob.java index 0b3b555..e640631 100644 --- a/springboot-schedule/src/main/java/com/xncoding/pos/jobs/HeartbeatJob.java +++ b/springboot-schedule/src/main/java/com/xncoding/pos/jobs/HeartbeatJob.java @@ -27,7 +27,7 @@ public class HeartbeatJob { /** * 检查状态1 */ - @Scheduled(cron = "0 26 19 * * ?") + @Scheduled(cron = "0 30 12 * * ?") public void checkState1() { logger.info(">>>>> cron中午12:30上传检查开始...."); logger.info(">>>>> cron中午12:30上传检查完成...."); @@ -36,7 +36,7 @@ public class HeartbeatJob { /** * 检查状态2 */ - @Scheduled(cron = "0 05 18 * * ?") + @Scheduled(cron = "0 0 18 * * ?") public void checkState2() { logger.info(">>>>> cron晚上18:00上传检查开始...."); logger.info(">>>>> cron晚上18:00上传检查完成...."); diff --git a/springboot-schedule/src/main/resources/application.yml b/springboot-schedule/src/main/resources/application.yml index 90acc9c..79e29ca 100644 --- a/springboot-schedule/src/main/resources/application.yml +++ b/springboot-schedule/src/main/resources/application.yml @@ -20,20 +20,5 @@ logging: ROOT: INFO com: xncoding: DEBUG - file: E:/logs/app.log + file: D:/logs/app.log ---- - -##################################################################### -######################## 测试环境profile ########################## -##################################################################### - -spring: - profiles: test - -logging: - level: - ROOT: INFO - com: - xncoding: DEBUG - file: /var/logs/app.log