有人可以帮我找出 javaquartz cron 表达式,为每个工作日从每月 1 日到每月 11 日下午 2.30 设置一个作业。
我可以从第 1 日到第 11 日或工作日单独实现目标,但不能一起实现。
从 1 日到 11 日的所有日子
0 30 14 1,2,3,4,5,6,7,8,9,10,11 1/1 ? *
对于所有工作日
0 30 14 ? * 周一、周二、周三、周四、周五 *
感谢您的帮助
最佳答案
试试这个:
30 14 1-11 * 1-5
参见https://crontab.guru/#30_14_1-11_ *_1-5
它说 future 的处决将是这样的:
next at 2018-02-13 14:30:00
then at 2018-02-14 14:30:00
then at 2018-02-15 14:30:00
then at 2018-02-16 14:30:00
then at 2018-02-19 14:30:00
关于Java Quartz cron 表达式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48757957/