摘要: 1、pom配置 2、启动类上加注解:@EnableScheduling 3、创建定时任务实现类 4、参数说明: @Scheduled接受两种定时的设置: 一种是cornexpression。 一种是Rate/Delay表达式(毫秒值): @Scheduled(fixedRate = 6000):上一 阅读全文
posted @ 2019-10-29 10:08 桥头堡洗脚城 阅读(426) 评论(0) 推荐(0) 编辑