Update QuartzStarter.java

This commit is contained in:
Wendal Chen 2018-01-24 20:07:57 +08:00 committed by GitHub
parent fd2837e78b
commit 2733fc3a22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ org.quartz.scheduler.skipUpdateCheck=true
properties.putIfAbsent("org.quartz.scheduler.skipUpdateCheck", "true");
try {
StdSchedulerFactory factory = new StdSchedulerFactory(properties);
Scheduler scheduler = factory.getScheduler();
scheduler = factory.getScheduler();
scheduler.setJobFactory(new NutQuartzJobFactory(appContext.getIoc()));
((Ioc2)appContext.getIoc()).getIocContext().save("app", "scheduler", new ObjectProxy(scheduler));
}