Spring using quartz triggers

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.