Environment:Spring-context-support-4.0.5.release.jar (requires \org\springframework\scheduling\quartz\ of this package)
<!-- Management You can use multiple triggers --> <!--lazy-init= ' false ' container to start executing the scheduler--> <bean id= "TaskManager" lazy-init= "false" autowire= "no" class= " Org.springframework.scheduling.quartz.SchedulerFactoryBean "> <property name=" triggers " > <list> <ref bean= "Task_1" /> </list> </property> </bean> <!-- define triggers --> <bean id= "Task_1" class= "Org.springframework.scheduling.quartz.CronTriggerBean" > <property name= "Jobdetail" > <ref bean= "WorkDetail" /> </property> <!-- cron Expression --> <property Name= "Cronexpression" > <!-- 1 minutes to execute once--> <value>0 */1 * * * ?</value> </property> </bean><!-- Implementation --> <bean id= "Workdetail" class= " Org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean "> <!-- Reference implemented classes --> <property name= "TargetObject" > <ref bean= " Canceltask " /> </property> <!-- methods to be executed --> <property name= "Targetmethod" > <value>run</value> </ property> </bean><!-- Implemented class --> <bean id= "Canceltask" class= " Package. Class "></bean>
Cron Expressions:
Http://www.cnblogs.com/sunjie9606/archive/2012/03/15/2397626.html
This article is from the "Night" blog, be sure to keep this source http://icyore.blog.51cto.com/8486958/1570416
Spring using quartz triggers