Spring quartz调度配置
配置文件:
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http://www.springframework.org/schema/aop"xsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-2.5.xsdhttp://www.springframework.org/schema/aophttp://www.springframework.org/schema/aop/spring-aop-2.5.xsdhttp://www.springframework.org/schema/contexthttp://www.springframework.org/schema/context/spring-context-2.5.xsd"><!-- 定时器,定时服务队列 --><bean id="schedulerFactoryService" /><!-- <ref bean="sadapter.order.sendOrderTrigger" /> <ref bean="sadapter.order.overTimeOrderCheckTrigger" /> <ref bean="sadapter.messNotify.MessNotifyAutoSendTrigger" /> <ref bean="sadapter.messNotify.OverTimeMessNotifyAutoCheckTrigger" /> --></list></property></bean><!--自动审核 1分钟一次 --><bean id="sadapter.order.ChkOrderTrigger" /></property><!-- 配置定时服务的启动时间 --><property name="cronExpression"><value>0 0/1 * * * ?</value></property></bean><!-- 指定定时服务的类、方法 --><bean id="sadapter.order.ChkOrderTask" /></property> <!-- 目标方法 --><property name="targetMethod"><value>chkOrder</value></property><property name="concurrent"><value>false</value></property></bean><!-- 定时服务类 --><bean id="sadapter.order.OrderAutoCheckProcesser"/></beans>