From 85f50f4aadb4ea51b6703bf9ffc9a510f9e08899 Mon Sep 17 00:00:00 2001 From: liuchengqian Date: Thu, 9 Mar 2023 10:04:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/xkrs/common/StaticScheduleTask.java | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/xkrs/common/StaticScheduleTask.java b/src/main/java/com/xkrs/common/StaticScheduleTask.java index b845dad..63486a8 100644 --- a/src/main/java/com/xkrs/common/StaticScheduleTask.java +++ b/src/main/java/com/xkrs/common/StaticScheduleTask.java @@ -3,8 +3,6 @@ package com.xkrs.common; import com.xkrs.helper.FirePointSubscribeManager; import com.xkrs.utilsnew.DateTimeUtils; import com.xkrs.utilsnew.WeiXinMessageUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import org.springframework.context.annotation.Configuration; import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.Scheduled; @@ -22,8 +20,8 @@ public class StaticScheduleTask { @Resource private FirePointSubscribeManager firePointSubscribeManager; - //每半小时更新一次订阅 - @Scheduled(cron = "0 */30 * * * ?") + //每小时更新一次订阅 + @Scheduled(cron = "0 0 * * * ?") private void syncSubscribe() { firePointSubscribeManager.autoSync(); } @@ -38,11 +36,4 @@ public class StaticScheduleTask { } } - //每4秒钟更新一次订阅 - @Scheduled(cron = "0/4 * * * * ?") - private void syncSubscribe6() { - firePointSubscribeManager.autoSync(); - } - - } \ No newline at end of file