Springboot中如何实现定时任务
摘要:#一:如何基于Scheduled实现定时任务 1.1:在启动类上添加 @EnableScheduling注解 1.2:写一个方法如下: @Scheduled(cron = "0 */1 * * * ?") public void scheld() { System.out.println("手机打开
阅读全文
posted @ 2020-12-17 19:14
posted @ 2020-12-17 19:14
posted @ 2020-12-14 15:46
感谢