摘要: SpringBoot定时任务实现方式有多种 1.单线程定时任务 a: 启动类上加注解@EnableScheduling // 开启对定时任务的支持b: 在方法上使用注解@Scheduled(cron = "10 * * * * ?")来设置任务执行时间 package com.example.tim 阅读全文
posted @ 2019-02-27 09:26 露天窗 阅读(534) 评论(0) 推荐(0) 编辑