Skip to content

Commit 722cdb2

Browse files
author
Xiong Neng
committed
完成springboot-schedule升级重构
1 parent a3cc973 commit 722cdb2

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

springboot-schedule/src/main/java/com/xncoding/pos/jobs/HeartbeatJob.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class HeartbeatJob {
2727
/**
2828
* 检查状态1
2929
*/
30-
@Scheduled(cron = "0 26 19 * * ?")
30+
@Scheduled(cron = "0 30 12 * * ?")
3131
public void checkState1() {
3232
logger.info(">>>>> cron中午12:30上传检查开始....");
3333
logger.info(">>>>> cron中午12:30上传检查完成....");
@@ -36,7 +36,7 @@ public void checkState1() {
3636
/**
3737
* 检查状态2
3838
*/
39-
@Scheduled(cron = "0 05 18 * * ?")
39+
@Scheduled(cron = "0 0 18 * * ?")
4040
public void checkState2() {
4141
logger.info(">>>>> cron晚上18:00上传检查开始....");
4242
logger.info(">>>>> cron晚上18:00上传检查完成....");

springboot-schedule/src/main/resources/application.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,5 @@ logging:
2020
ROOT: INFO
2121
com:
2222
xncoding: DEBUG
23-
file: E:/logs/app.log
23+
file: D:/logs/app.log
2424

25-
---
26-
27-
#####################################################################
28-
######################## 测试环境profile ##########################
29-
#####################################################################
30-
31-
spring:
32-
profiles: test
33-
34-
logging:
35-
level:
36-
ROOT: INFO
37-
com:
38-
xncoding: DEBUG
39-
file: /var/logs/app.log

0 commit comments

Comments
 (0)