整合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>

版权声明:
作者:Joe.Ye
链接:https://www.appblog.cn/index.php/2023/04/01/integration-shiro-encountered-org-quartz-schedule-error/
来源:APP全栈技术分享
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
打赏
海报
整合Shiro出现org.quartz.Scheduler错误
运行的时候出现错误: *************************** APPLICATION FAILED TO START *************************** Description: An attempt was made to call ……
<<上一篇
下一篇>>
文章目录
关闭
目 录