org.quartz的问题

org.quartz的问题

Java code
 
public class SchedulerManager { public static void startChargeBillScheduler() { JobDetail jobDetail = new JobDetail("ChargeBillScheduler", "jobGroup1", ChargeBillScheduler.class); CronTrigger cronTrigger = new CronTrigger("trigger1", "tgroup1"); CronExpression cexp; try { cexp = new CronExpression(Config.getProperties().getProperty( "chargeBillScheduler")); cronTrigger.setCronExpression(cexp); SchedulerFactory schedulerFactory = new StdSchedulerFactory(); Scheduler scheduler; scheduler = schedulerFactory.getScheduler(); scheduler.scheduleJob(jobDetail, cronTrigger); scheduler.start(); System.out.println("chargeBillScheduler 启动!"); } catch (ParseException e) { e.printStackTrace(); } catch (SchedulerException e) { e.printStackTrace(); } }
 

1)
chargeBillScheduler=0 0/5 * * * ?  运行正常
2)
chargeBillScheduler=59 59 23 * * ? 就没有办法运行(我的测试方法是,调整系统时间,比如调整到23:59:00)
请指教??
调整系统时间后服务重启没?
问题解决了,不知道谁改了我系统的时区....
极度晕倒.由于只有你一个人回答,50分全给你了,哈哈...