Code in the XML configuration file
<bean id= "MyJob" class= "Top.lapa.web.job.SelectPayOrNotJob" ></bean>
<!--Jobdetail--
<bean id= "Jobdetail" class= "Org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean" >
<property name= "TargetObject" ref= "MyJob" ></property>
<property name= "Targetmethod" value= "Execute" ></property>
<property name= "Concurrent" value= "false"/><!--job not concurrently dispatched--
</bean>
<!--define TRIGGER triggers--
<bean id= "Crontrigger" class= "Org.springframework.scheduling.quartz.CronTriggerFactoryBean" >
<property name= "Jobdetail" ref= "Jobdetail" ></property>
<property name= "cronexpression" value= "0/10 * * * *?" ></property>
</bean>
<bean id= "Scheduler" class= "Org.springframework.scheduling.quartz.SchedulerFactoryBean" >
<property name= "Triggers" >
<list>
<ref bean= "Crontrigger"/>
</list>
</property>
</bean>
Quartz and SSM Integration