<beanid="testTrigger"class="org.springframework.scheduling.quartz.SimpleTriggerBean"><propertyname="jobDetail"><!-- see the example of method invoking job above --><refbean="testJobDetail"/></property><propertyname="startDelay"><value>2000</value></property><propertyname="repeatInterval"><!-- 10s后重复执行 --><value>10000</value></property></bean><beanid="testJobDetail"class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"><propertyname="targetObject"><refbean="testJob"/></property><propertyname="targetMethod"><value>test</value></property></bean><beanid="testJob"class="xxx.TestJob"singleton="true"></bean><beanclass="org.springframework.scheduling.quartz.SchedulerFactoryBean"><propertyname="triggers"><list><refbean="testTrigger"/></list></property></bean>