开发者

Quartz's CronTrigger 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜