Browse Source

1.修改定时任务时间间隔60s

luxueshi 3 years ago
parent
commit
1bda1e9aec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/MinitorApplication.java

+ 1 - 1
src/main/java/MinitorApplication.java

@@ -51,6 +51,6 @@ public class MinitorApplication {
         // 计时器
         Timer timer = new Timer();
         // 添加执行任务(延迟 0s 执行,每 60s 执行一次)
-        timer.schedule(timerTask, 0, 5000);
+        timer.schedule(timerTask, 0, 60000);
     }
 }