
跑的时候出现错误:
Description: An attempt was made to call the method org.quartz.Scheduler.getListenerManager()Lorg/quartz/ListenerManager; but it does not exist. Its class, org.quartz.Scheduler, is available from the following locations: jar:file:/E:/apache-maven-repo/org/opensymphony/quartz/quartz/1.6./quartz-1.6..jar!/org/quartz/Scheduler.class It was loaded from the following location: file:/E:/apache-maven-repo/org/opensymphony/quartz/quartz/1.6./quartz-1.6..jar Action: Correct the classpath of your application so that it contains a single, compatible version of org.quartz.Scheduler
查询依赖的时候发现它是shiro的一个可选项,直接把它exclusion
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-all</artifactId>
<version>1.4.0</version>
<exclusions>
<exclusion>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-quartz</artifactId>
</exclusion>
</exclusions>
</dependency>