瀏覽代碼

修改定时任务时间间隔

lingpeng.li 6 月之前
父節點
當前提交
d94e3863b0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      jeecg-module-gather/src/main/java/org/jeecg/modules/watch/MysqlWatch.java

+ 1 - 1
jeecg-module-gather/src/main/java/org/jeecg/modules/watch/MysqlWatch.java

@@ -57,7 +57,7 @@ public class MysqlWatch {
     MongoTemplate mongoTemplate;
 
 
-    @Scheduled(fixedDelay = 1000)
+    @Scheduled(cron = "0 0/1 * * * ?")
     public void getTsData() {
         Connection connection = null;
         Statement statement = null;