开发者

Quartz's CronTrigger for every two hours

开发者 https://www.devze.com 2023-04-11 03:33 出处:网络
I want to schedule a component with Quartz\'s CronTri开发者_StackOverflow中文版gger for every two hours.

I want to schedule a component with Quartz's CronTri开发者_StackOverflow中文版gger for every two hours. What is the correct cron expression to achieve this?


You probably want a cron expression like:

"0 0 0/2 * * ?"


Using quartz scheduler. Following cron expression for executing job two hour.

String cronExpression = "0 0/120 * * * ?";
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号