我在spring中使用quartz,并通过xml连接crontriggerbean示例,如下所示:
<bean id="checkToEnsureSomethingOrOther" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail">
<bean class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="maintenanceService"/>
</property>
<property name="targetMethod">
<value>checkToEnsureSomethingOrOtherMethod</value>
</property>
</bean>
</property>
<property name="cronExpression">
<value>0 5 3,11,19 * * ?</value>
</property>
</bean>
我想能够在暂停状态下初始化此作业。在这个豆子里我有办法做到吗?
暂无答案!
目前还没有任何答案,快来回答吧!