src/main/java/com/boying/job/PayResultScheduled.java
@@ -36,7 +36,7 @@ Boolean taskFlag = false; @Scheduled(cron = "0/2 * * * * ?") //@Scheduled(cron = "0/2 * * * * ?") public void execute() throws Exception { if(taskFlag == true){ System.out.println("正在运行,强制退出-------》"); @@ -92,7 +92,7 @@ for (int i = 0; i < 10; i++) { String s= i+""; ThreadUtil.execute(() -> { System.out.println(s); // System.out.println(s); }); } }