SchedulerFactoryBean

<?xml version="1.0" encoding="UTF-8"?><beans><bean id="scheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean" lazy-init="false"><property name="startupDelay" value="10"></property><property name="triggers"><list><!-- <ref local="autoQueryCitiesTrigger" /> --><ref local="hotelAutoCancelTrigger"></ref><ref local="timerAuditeTrigger"></ref><ref local="timerAutoChangeStatusTrigger"></ref></list></property></bean><bean id="autoQueryCitiesTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerBean"><property name="jobDetail" ref="autoQueryCitiesJob"></property><property name="repeatInterval" value="30000"></property></bean><bean name="autoQueryCitiesJob" class="org.springframework.scheduling.quartz.JobDetailBean"><property name="jobClass" value="com.hnatourism.tdos.scheduler.job.AutoQueryCitiesJobImpl"></property><property name="jobDataAsMap"><map><entry key="hnaProcityManager" value-ref="hnaProcityManager"></entry><!-- <entry key="airportInfoManager" value-ref="airportInfoManager" /> --><entry key="springContextUtil" value-ref="SpringContextUtil"></entry></map></property><property name="applicationContextJobDataKey" value="applicationContext"></property></bean><bean name="autoQueryCitiesManager" class="com.hnatourism.tdos.scheduler.job.AutoQueryCitiesJobImpl"><property name="hnaProcityManager" ref="hnaProcityManager"></property><!-- <property name="airportInfoManager" ref="airportInfoManager" /> --><property name="springContextUtil" ref="SpringContextUtil"></property></bean><bean id="hotelAutoCancelTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerBean"><property name="jobDetail" ref="hotelAutoCancelJob"></property><property name="repeatInterval" value="300000"></property></bean><bean id="timerAuditeTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean"><property name="jobDetail" ref="timerAuditeJob"></property><property name="cronExpression"><value>0 0 18 * * ?</value><!--每天18点0分0秒 --></property></bean><bean id="timerAutoChangeStatusTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean"><property name="jobDetail" ref="timerAutoChangeStatusJob"></property><property name="cronExpression"><value>0 0 0 * * ?</value><!--每天0点0分0秒 --></property></bean><bean name="timerAuditeJob" class="org.springframework.scheduling.quartz.JobDetailBean"><property name="jobClass" value="com.hnatourism.tdos.scheduler.job.TimerAuditeJob"></property><property name="applicationContextJobDataKey" value="applicationContext"></property></bean><bean name="timerAutoChangeStatusJob" class="org.springframework.scheduling.quartz.JobDetailBean"><property name="jobClass" value="com.hnatourism.tdos.scheduler.job.TimerAutoChangeStatusJob"></property><property name="applicationContextJobDataKey" value="applicationContext"></property></bean><bean name="hotelAutoCancelJob" class="org.springframework.scheduling.quartz.JobDetailBean"><property name="jobClass" value="com.hnatourism.tdos.scheduler.job.AutoCancelOrderJob"></property><property name="jobDataAsMap"><map><entry key="timeOut" value="30"></entry></map></property><property name="applicationContextJobDataKey" value="applicationContext"></property></bean></beans>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值