摘要: 定时任务在Spring Boot中的集成 在启动类中加入开启定时任务的注解: 在SpringBoot中使用定时任务相当的简单。首先,我们在启动类中加入@EnableScheduling来开启定时任务。 这是必要的 然后: @Component public class QuartzService { 阅读全文
posted @ 2018-07-03 20:26 小虎Tiger 阅读(127) 评论(0) 推荐(0) 编辑