Faisal khan Faisal khan - 4 months ago 63
Java Question

spring cron expression for every after 30 minutes

I have following spring job to run every after 30 minutes please check my following cron express is that correct to trigger every after 30 minutes.

"0 0 0 * * 30"

<bean id="autoWeblogPingTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="jobDetailForWeblogPing"/>
<!-- run every 35 minutes -->
<property name="cronExpression" value="0 0 0 * * 30" />
</bean>

Answer
<property name="cronExpression" value="0 0/30 * * * ?" />
Comments