<!-- 每1分钟触发一次 -->
<bean id="retryTaskWork" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="retryTask"/>
<property name="targetMethod" value="run"/>
<property name="concurrent" value="false"/>
</bean>
<bean id="retryTaskTrigger" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="retryTaskWork"/>
<property name="cronExpression" value="0 0/1 * * * ?"/>
</bean>
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref bean="retryTaskTrigger"/>
</list>
</property>
<property name="startupDelay" value="180"/>
</bean>