QuartZ xml配置
job类 省略
//见源码,有X种方式获得工厂,注意工厂的构造函数,和initialize 方法public Scheduler getScheduler() throws SchedulerException{//return new StdSchedulerFactory("quartz.properties").getScheduler();return StdSchedulerFactory.getDefaultScheduler();}public static void main(String[] args) throws SchedulerException, ParseException {Quartz ss = new Quartz();Scheduler sch = ss.getScheduler(); sch.start();}