以前一直对调度任务的 scheduleAtFixedRate和scheduleWithFixedDelay理解不清楚,经过自己做实验得到如下结论: 详解: public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit);