springboot使用定时任务 第一步:@EnableScheduling第二步 标注标注@Scheduled 第一步:@EnableScheduling 在@SpringBootApplication上添加@EnableScheduling 第二步 标注标注@Scheduled 在方法体上标注@Scheduled(cron = “执行时间”) 附cron表达式生成:http://www.bejson.com/othertools/cron/ 侵删