一,首先下载quartz-1.6.0.jar架包,到lib目录下
二,写你自己定时器业务方法
package com.lbnet.lzx.timing; import org.quartz.JobExecutionContext; import org.quartz.JobExecutionException; import org.springframework.beans.factory.BeanFactory; import org.springframework.context.support.ClassPathXmlApplicationContext; import org.springframework.scheduling.quartz.QuartzJobBean; import com.lbnet.lzx.service.IOrderService; public class OrderNoRefact extends QuartzJobBean{ private static BeanFactory factory = new ClassPathXmlApplicationContext("applicationContext-*.xml"); @Override protected void executeInternal(JobExecutionContext arg0) throws JobExecutionExcepti