Spring Quartz
https://www.cnblogs.com/SpaceAnt/p/6354446.html
<bean id="Scheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean"> <property name="triggers"> <list> <ref bean="HangJVMDetectorCronTrigger"/> </list> </property> </bean> <bean id="HangJVMDetectorCronTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean"> <property name="jobDetail" ref="HangJVMDetectorJobDetail" /> <property name="cronExpression" value="0 0/5 * ? * *" /> </bean> <bean id="HangJVMDetectorJobDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"> <property name="targetObject" ref="HangJVMDetector" /> <property name="targetMethod" value="execute" /> <property name="concurrent" value="false" /> </bean> <bean id="HangJVMDetector" class="com.citifutures.foam.scheduler.HangJVMDetector"> <property name="mailSender" ref="mailSender" /> <property name="hangJVMMailMessage" ref="HangJVMMailMessage" /> <property name="heartBeatHandler" ref="HeartBeatHandlerImpl" /> <property name="hangMinute" value="2" /> </bean>
相关推荐
qingjiuquan 2020-05-15
Julywhj 2020-01-05
景泽元的编程 2019-12-03
与卿画眉共浮生 2017-07-27
横云断岭 2012-02-03
happyfling 2019-09-20
fairystepwgl 2016-03-22
missshy 2019-03-02
burning 2016-03-11
zhongjcbill 2015-04-21
Holyn 2014-11-21
MayMatrix 2013-11-03
chenhualeguan 2013-10-16
spprogrammer 2016-03-22
bxqybxqy 2012-10-16