<?xml version="1.0" encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-3.2.xsd"><beanid="CloudPush"class="com.secom.mobile.scheduler.CloudPush"/><!-- specifing class and method that is going to be called on a specified
time basis --><beanid="myJob"class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"><propertyname="targetObject"ref="CloudPush"/><propertyname="targetMethod"value="start"/></bean><!-- simple trigger specify repeat interval and delay time --><beanid="simpleTrigger"class="org.springframework.scheduling.quartz.SimpleTriggerFactoryBean"><propertyname="jobDetail"ref="myJob"/><propertyname="repeatInterval"value="60000"/><!-- 毫秒 --><propertyname="startDelay"value="300000"/></bean><!-- scheduler factory bean to bind,the executing code and time intervals
together --><beanclass="org.springframework.scheduling.quartz.SchedulerFactoryBean"><propertyname="jobDetails"><list><refbean="myJob"/></list></property><propertyname="triggers"><list><refbean="simpleTrigger"/></list></property></bean></beans>