Files
hutool/hutool-cron/src/test/resources/config/cron.setting
2023-09-27 00:51:54 +08:00

18 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#------------------------------------------------------------------
# 定时任务配置文件
# 定时任务表达分为以下几种情况:
# 1. 表达式为5位此时兼容Linux的Crontab模式第一位匹配分此时如果为秒匹配模式则秒部分为固定值取决于加入表达式时当前时间秒数
# 2. 表达式为6位此时兼容Quartz模式第一位匹配秒但是只有秒匹配模式时秒部分定义才有效
# 3. 表达式为7位此时兼容Quartz模式第一位匹配秒最后一位匹配年
#------------------------------------------------------------------
# demo.org.dromara.hutool.cron.TestJob.doTest = */1 * * * * *
[org.dromara.hutool.cron.demo]=
# 6位表达式在秒匹配模式下可用此处表示每秒执行一次
# TestJob.doTest = */1 * * * * *
# 5位表达式在分匹配模式下可用此处表示每分钟执行一次
# 如果此时为秒匹配模式,则秒部分为固定数字(此秒取决于加入表达式当前时间的秒数)
TestJob.doTest = 0/30 * 8-18 * * ?
TestJob2.doTest = */3 * * * * *