<beans>
<bean id="rdsRetrieveTask"
class="具体的任务类">
<property name="assemblyAndPost" ref="assemblyAndPost"></property>
</bean>
<bean id="rdsRetrieveTaskJobDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="rdsRetrieveTask" />
</property>
<property name="targetMethod">
<value>具体任务类的执行方法value>
</property>
<property name="concurrent">
<value>false</value>
</property>
</bean>
<bean id="cronRdsRetrieveTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail">
<ref bean="rdsRetrieveTaskJobDetail" />
</property>
<property name="cronExpression">
<value>0 0/1 * * * ?</value>//触发时间
</property>
</bean>
<bean id="rdsRetrieveScheduler"
class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref bean="cronRdsRetrieveTrigger" />
</list>
</property>
</bean>
</beans>