0

I am using spring + quartz for schedule a job which need run every 22 mins.and configured as below. but the job start the hour point(Sharp) too. (running time like : 12:00, 12:22, 12:44, 13:00(why?), 13:22,13:44. even configured to 0 */22 * * * ? or 0 0/22 * * * ?, it's too.

<bean id="cronTrigger_LogBackupManager" class="org.springframework.scheduling.quartz.CronTriggerBean">
    <property name="jobDetail" ref="jobDetail_LogBackupManager" />
    <property name="cronExpression">
        <value>0 /22 * * * ?</value>    <!-- each 22 min -->
    </property>
</bean>
4

1 回答 1

0

根据文档

/ - 用于指定增量。例如,秒字段中的“0/15”表示“秒 0、15、30 和 45”。秒字段中的“5/15”表示“5、20、35 和 50 秒”。

因此,我相信在几分钟内使用“22/22”应该可以解决问题。PS这个我没试过。让我知道这是行不通的。

于 2016-11-27T05:29:17.337 回答