大家好,又见面了,我是你们的朋友全栈君。<?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>
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/142115.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...