Action:
Correct the classpath of your application so that it contains a single, compatible version of org.quartz.Scheduler
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'quartzScheduler' defined in class path resource
[org/springframework/boot/autoconfigure/quartz/QuartzAutoConfiguration.class]: Invocation of init method failed;
nested exception is java.lang.NoSuchMethodError: org.quartz.Scheduler.getListenerManager()Lorg/quartz/ListenerManager;
郁闷了半天,将quartz-all注释掉后,完美解决。
现在基本上不用quartz-all,用spring内置的注解@EnableScheduling
即可实现定时任务。