From 6975ff285317079f2ee8a214077c8c783f01f9de Mon Sep 17 00:00:00 2001 From: laishajiang <12977614+laishajiang@user.noreply.gitee.com> Date: Mon, 15 Apr 2024 17:28:17 +0800 Subject: [PATCH] =?UTF-8?q?110=E4=B8=BE=E6=8A=A5=E6=8A=95=E8=AF=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../biutag/lan/service/DataSyncScheduler.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/mailbox-lan/src/main/java/com/biutag/lan/service/DataSyncScheduler.java b/mailbox-lan/src/main/java/com/biutag/lan/service/DataSyncScheduler.java index 6b199ea..da0f1b0 100644 --- a/mailbox-lan/src/main/java/com/biutag/lan/service/DataSyncScheduler.java +++ b/mailbox-lan/src/main/java/com/biutag/lan/service/DataSyncScheduler.java @@ -3,14 +3,14 @@ package com.biutag.lan.service; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; -@Component -public class DataSyncScheduler { - private final ReportService dataSourceService; - public DataSyncScheduler(ReportService dataSourceService) { - this.dataSourceService = dataSourceService; - } - @Scheduled(fixedRate = 60 * 60 * 1000) // 每5分钟执行一次 - public void syncDataSourcesPeriodically() { - dataSourceService.syncData(); - } -} +//@Component +//public class DataSyncScheduler { +// private final ReportService dataSourceService; +// public DataSyncScheduler(ReportService dataSourceService) { +// this.dataSourceService = dataSourceService; +// } +// @Scheduled(fixedRate = 60 * 60 * 1000) // 每5分钟执行一次 +// public void syncDataSourcesPeriodically() { +// dataSourceService.syncData(); +// } +//}