整合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 Android增量更新 - Apk差分合并算法服务端设计
Android增量更新 - Apk差分合并算法服务端设计
2
高并发下如何保证接口的幂等性?
高并发下如何保证接口的幂等性?
3
玩转Redis-删除了两百万key,为什么内存依旧未释放?
玩转Redis-删除了两百万key,为什么内存依旧未释放?
4
ZooKeeper Web控制台ZKUI
ZooKeeper Web控制台ZKUI
5
Maven连接Nexus私服配置
Maven连接Nexus私服配置
最新评论
一位WordPress评论者
一位WordPress评论者
2月12日
您好,这是一条评论。若需要审核、编辑或删除评论,请访问仪表盘的评论界面。评论者头像来自 Gravatar。