<?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>
SchedulerFactoryBean
最新推荐文章于 2023-08-16 15:52:49 发布