Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-10-21 08:43:10.921 ERROR 15696 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.springframework.scheduling.quartz.SchedulerAccessor.registerListeners(SchedulerAccessor.java:351)
The following method did not exist:
org.quartz.Scheduler.getListenerManager()Lorg/quartz/ListenerManager;
The method's class, org.quartz.Scheduler, is available from the following locations:
jar:file:/C:/Users/10406/.m2/repository/org/opensymphony/quartz/quartz/1.6.1/quartz-1.6.1.jar!/org/quartz/Scheduler.class
It was loaded from the following location:
file:/C:/Users/10406/.m2/repository/org/opensymphony/quartz/quartz/1.6.1/quartz-1.6.1.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of org.quartz.Scheduler
原因:
jar包重复
解决:
看最后action的语句,重复的是啥,我的是quartz,所以注释了

本文记录了一次Spring Boot应用中Quartz调度器配置失败的问题。主要原因是由于项目依赖中存在不同版本的Quartz jar包导致方法调用冲突。文章详细介绍了错误信息及解决步骤。
941

被折叠的 条评论
为什么被折叠?



