*问题描述:***The method newJob(Class) is undefined for the type Test
解决办法:由JobBuilder创建。
比如:下面的例子会报错:
JobDetail job = newJob(QuartzTest.class).withIdentity("job1", "group1").build();
应该改为如下写法:
JobDetail job=JobBuilder.newJob(MyJob.class).withIdentity("job1","group1").build();