简体   繁体   English

春季预定的3:00至6:30

[英]Spring scheduled cron between 3:00 to 6:30

I whould like to schedule a job every 5 minutes between 3:00 and 6:30. 我想在3:00至6:30之间每5分钟安排一次工作。

This schedules my job every 5 minutes between 3:00 and 5:55: 这会在3:00至5:55之间每5分钟安排我的工作:

@Scheduled(cron = "0 0/5 3-5 * * *")

But how do I get @scheduled to include the last 35 minutes? 但是,如何@scheduled包括最近的35分钟?

我会尝试

@Scheduled(cron = "0 0/5 3-6,5 * * *")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Spring没有运行我的@Scheduled(cron =“ 0,30 * * * * *”) - Spring is not running my @Scheduled(cron = “0,30 * * * * *”) * 和 ? 之间的区别在 Spring @Scheduled(cron="...") - Difference between * and ? in Spring @Scheduled(cron=“…”) java - 如何编写一个在春季/java中工作日从上午9:30到凌晨4:00每5分钟运行一次的cron表达式? - How to write a cron expression that runs every 5 mins from 9:30 to 4:00 am on weekdays in spring/java? 从 9:00:30 开始,每 30 秒执行一次 cron? - start at 9:00:30 and every 30s execute cron? 春季@安排了cron,但没有重叠的cron - Spring @scheduled with cron but no overlapping crons 如何在 Spring 中运行作业,在上午 9:30 到下午 4:00 之间每 5 分钟启动一次? - How to run a job in Spring Boot between 9:30 am to 4:00 pm every 5 mins? Spring-Boot @Scheduled Cron表达式可以使两个任务之间略有延迟? - Spring-Boot @Scheduled Cron expressions to make slight delay between two tasks? Spring计划的Cron工作在错误的时间解雇 - Spring Scheduled Cron jobs firing at wrong time Spring @Scheduled(cron =“ 0 * * * *?”)不是每小时运行一次 - Spring @Scheduled(cron = “0 * * * * ?”) not run every hour 从属性文件更新Spring @Scheduled Cron - Updating Spring @Scheduled Cron From Properties File
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM