{"id":2023,"date":"2023-04-01T20:01:14","date_gmt":"2023-04-01T12:01:14","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=2023"},"modified":"2023-04-07T10:16:47","modified_gmt":"2023-04-07T02:16:47","slug":"integration-shiro-encountered-org-quartz-schedule-error","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/04\/01\/integration-shiro-encountered-org-quartz-schedule-error\/","title":{"rendered":"\u6574\u5408Shiro\u51fa\u73b0org.quartz.Scheduler\u9519\u8bef"},"content":{"rendered":"<p>\u8fd0\u884c\u7684\u65f6\u5019\u51fa\u73b0\u9519\u8bef\uff1a<\/p>\n<pre><code>***************************\nAPPLICATION FAILED TO START\n***************************\n\nDescription:\n\nAn 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:\n\n    jar:file:\/C:\/Users\/yezhou\/.m2\/repository\/org\/opensymphony\/quartz\/quartz\/1.6.1\/quartz-1.6.1.jar!\/org\/quartz\/Scheduler.class\n\nIt was loaded from the following location:\n\n    file:\/C:\/Users\/yezhou\/.m2\/repository\/org\/opensymphony\/quartz\/quartz\/1.6.1\/quartz-1.6.1.jar\n\nAction:\n\nCorrect the classpath of your application so that it contains a single, compatible version of org.quartz.Scheduler<\/code><\/pre>\n<p><!-- more --><\/p>\n<p>\u67e5\u8be2\u4f9d\u8d56\u7684\u65f6\u5019\u53d1\u73b0\u5b83\u662fshiro\u7684\u4e00\u4e2a\u53ef\u9009\u9879\uff0c\u76f4\u63a5\u628a\u5b83exclusion<\/p>\n<pre><code class=\"language-xml\">&lt;dependency&gt;\n    &lt;groupId&gt;org.apache.shiro&lt;\/groupId&gt;\n    &lt;artifactId&gt;shiro-all&lt;\/artifactId&gt;\n    &lt;version&gt;1.4.0&lt;\/version&gt;\n    &lt;exclusions&gt;\n        &lt;exclusion&gt;\n            &lt;groupId&gt;org.apache.shiro&lt;\/groupId&gt;\n            &lt;artifactId&gt;shiro-quartz&lt;\/artifactId&gt;\n        &lt;\/exclusion&gt;\n    &lt;\/exclusions&gt;\n&lt;\/dependency&gt;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd0\u884c\u7684\u65f6\u5019\u51fa\u73b0\u9519\u8bef\uff1a *************************** APPLICATION FAIL [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[513],"class_list":["post-2023","post","type-post","status-publish","format-standard","hentry","category-java-basic","tag-shiro"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/2023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=2023"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/2023\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=2023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=2023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=2023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}