소스 검색

修改定时任务时间间隔

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;