CronTrigger 语法不同于Linux的 CronTab
- Seconds []
- Minutes [0-59]
- Hours [0-23]
- Day-of-Month [Day-of-Month can be any value 0-31, but you need to be careful about how many days are in a given month!]
- Month [Months can be specified as values between 0 and 11, or by using the
strings JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV and DEC]
- Day-of-Week [ 1 and 7 (1 = Sunday) or by using the strings SUN, MON, TUE, WED, THU, FRI and SAT]
- Year (optional field)
举例:0 0 12 ? * WED 表示 每个星期三 下午12:00
本文介绍了CronTrigger语法,它用于定义任务调度的时间规则,不同于Linux的CronTab。详细解释了各字段的意义,如秒、分钟、小时等,并提供了一个具体示例说明如何配置每周三中午12点触发的任务。
1334

被折叠的 条评论
为什么被折叠?



