<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context"
	xmlns:tx="http://www.springframework.org/schema/tx" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:cache="http://www.springframework.org/schema/cache" xmlns:task="http://www.springframework.org/schema/task"
	xsi:schemaLocation="http://www.springframework.org/schema/beans   http://www.springframework.org/schema/beans/spring-beans.xsd
                           http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
                           http://www.springframework.org/schema/tx      http://www.springframework.org/schema/tx/spring-tx-3.1.xsd 
                           http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache-3.1.xsd
                           http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd">

	<bean id="startWorkJob" class="com.lyms.platform.data.service.impl.SmsServiceImpl"></bean>
	<!-- 配置任务的具体类和方法 -->
	<!--<bean id="startWorkTask" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">-->
		<!--&lt;!&ndash; 要调用的bean &ndash;&gt;-->
		<!--<property name="targetObject" ref="startWorkJob"></property>-->
		<!--&lt;!&ndash; 要调用的Method &ndash;&gt;-->
		<!--<property name="targetMethod" value="productSms"></property>-->
		<!--&lt;!&ndash; 是否并发,false表示 如果发生错误也不影响下一次的调用 &ndash;&gt;-->
		<!--<property name="concurrent" value="false"></property>-->
	<!--</bean>-->
	<!--&lt;!&ndash; 配置一个触发器 &ndash;&gt;-->
	<!--<bean id="startWorkTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">-->
		<!--<property name="jobDetail" ref="startWorkTask"></property>-->
		<!--<property name="cronExpression" value="0 0 1 * * ?"></property>-->
	<!--</bean>-->

	<!-- 总调度,用于启动定时器 -->
	<!--<bean id="schedulerFactory" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">-->
		<!--<property name="triggers" >-->
			<!--<list>-->
				<!--&lt;!&ndash;<ref bean="startWorkTrigger"/>&ndash;&gt;-->
				<!--<ref bean="deleteDueSmsTrigger"/>-->
			<!--</list>-->
		<!--</property>-->
	<!--</bean>-->


	<!--<bean id="deleteDueSmsJob" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">-->
		<!--&lt;!&ndash; 要调用的bean &ndash;&gt;-->
		<!--<property name="targetObject" ref="startWorkJob"></property>-->
		<!--&lt;!&ndash; 要调用的Method &ndash;&gt;-->
		<!--<property name="targetMethod" value="deleteDueSms"></property>-->
		<!--&lt;!&ndash; 是否并发,false表示 如果发生错误也不影响下一次的调用 &ndash;&gt;-->
		<!--<property name="concurrent" value="false"></property>-->
	<!--</bean>-->


	<!--&lt;!&ndash; 配置一个触发器 &ndash;&gt;-->
	<!--<bean id="deleteDueSmsTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">-->
		<!--<property name="jobDetail" ref="deleteDueSmsJob"></property>-->
		<!--<property name="cronExpression" value="0 20 16 * * ?"></property>-->
	<!--</bean>-->
</beans>