SpringBoot整合定时任务步骤: 1.在启动类上加入@EnableScheduling注解 2.创建一个调度任务类。类上加入@Component注解、方法上加入@Scheduled(cron = "xxxxx")注解