如果系统 依赖 shiro-all包 ,会导致
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quartzScheduler' defined in class path resource [org/springframework/boot/autoconfigure/quartz/QuartzAutoConfiguration.class]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.quartz.Scheduler.getListenerManager()Lorg/quartz/ListenerManager;
好像是redis需要的quartz版本高于shiro里面quartz版本,找不到匹配的方法报异常
当pom.xml文件中没有引入shiro,引入redis依赖只需要
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
当pom.xml文件中引入shiro-all,引入redis依赖需要如下为quartz指定版本
<dependency>
<groupId>org.springframework.boot