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 * * * ?";
精彩评论