标签: java spring-boot cron scheduled-tasks scheduling
我有这个调度程序:
@Schedules({ @Scheduled(cron = "0 05 00 * * *"), @Scheduled(cron = "0 */90 03-22 * * *") })
凌晨3点之后,程序每小时运行一次,而不是每90分钟运行一次。你知道为什么吗?
答案 0 :(得分:0)
尝试一下,同时使用:-
0 0-21 / 3 * * *
30 1-22 / 3 * * *