整合Shiro出现org.quartz.Scheduler错误

运行的时候出现错误:

***************************
APPLICATION FAILED TO START
***************************

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:/C:/Users/yezhou/.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/yezhou/.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

查询依赖的时候发现它是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>
上一篇 SpringMVC+JSP中关于JQuery ajax提交的Content-Type参数设置application/json和application/x-www-form-urlencoded区别
下一篇 高性能分布式锁Redisson的使用
目录
文章列表
1 Ubuntu下创建Eclipse桌面快捷方式
Ubuntu下创建Eclipse桌面快捷方式
2
Java判断是否周末
Java判断是否周末
3
Android Gradle Plugin打包Apk过程中的Transform API
Android Gradle Plugin打包Apk过程中的Transform API
4
CryptoJS中WordArray
CryptoJS中WordArray
5
Lucene的学习第三篇 — 分词
Lucene的学习第三篇 — 分词
最新评论
一位WordPress评论者
一位WordPress评论者
2月12日
您好,这是一条评论。若需要审核、编辑或删除评论,请访问仪表盘的评论界面。评论者头像来自 Gravatar。