简体   繁体   中英

Quartz expression every hour

I wanted to clarify which of the below expressions are meant to execute the cron job every hour all the time? I have EXPRESSION_1 configured to run every hour but am noticing some weird behavior with the cron skipping the job for a few hours. Can someone clarify please

    EXPRESSION_1=0 0 * * * ?
    EXPRESSION_2=0 0/0 * * * ?

Your first expression looks correct and will execute every hour.

As your requirement is once per hour you could also use a quartz SimpleTrigger and avoid using a cron expression.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM