@schedule注解默认是同步且单线程的,如果定时任务比较多或者有的定时任务比较耗时,会影响到其他定时任务的执行 @ComponentpublicclassTestSchedule{publicstaticinti=0;@Scheduled(cron = "* * * * * ?")publicvoidtest()throwsInterruptedException { System.out.println(i++); Thread.sleep(1000*100); } } 2. ...