在获取调度程序对象时初始化 StdSchedulerFactory 后出现错误。
init method failed; nested exception is org.quartz.SchedulerException: ThreadPool class not specified.
代码是:
Properties properties = new Properties();
properties.put("org.quartz.scheduler.instanceName", name);
properties.put("org.quartz.threadPool.threadCount", String.valueOf(numberOfThreads));
properties.put("org.quartz.scheduler.skipUpdateCheck", "true");
StdSchedulerFactory stdSchedulerFactory = new StdSchedulerFactory();
stdSchedulerFactory.initialize(properties);
Scheduler scheduler = stdSchedulerFactory.getScheduler();
scheduler.start();
你能提出任何解决方案吗?