摘要: 定时任务 1、主方法(springbootapplication)中添加注释@EnableScheduling //开启定时任务的注解 2、Service层(@Service)方法上添加@Scheduled(cron = "0 13 10 * * ?") //指定10点13分整执行此代码,cron格 阅读全文
posted @ 2020-08-31 10:43 水能煮粥和米饭 阅读(125) 评论(0) 推荐(0)