shiro-spring-boot-starter 和 shiro-redis 整合 异常分析

时间:2024-03-21 18:19:56

java.lang.IllegalStateException: Error processing condition on org.apache.shiro.spring.boot.autoconfigure.ShiroBeanAutoConfiguration.eventBus

Caused by: java.lang.IllegalStateException: @ConditionalOnMissingBean did not specify a bean using type, name or annotation and the attempt to deduce the bean's type failed

Caused by: org.springframework.boot.autoconfigure.condition.OnBeanCondition$BeanTypeDeductionException: Failed to deduce bean type for org.apache.shiro.spring.boot.autoconfigure.ShiroBeanAutoConfiguration.eventBus

Caused by: java.lang.ClassNotFoundException: org.apache.shiro.event.EventBus

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

EventBus

https://www.oschina.net/news/75543/shiro-1-3-0

shiro1.3 加入了时间总线。

而引入shiro-redis  ,会使用1.2.1的jar

解决办法    排除掉shiro-redis 的  shiro-core  的jar

 shiro-spring-boot-starter 和 shiro-redis 整合 异常分析

shiro-spring-boot-starter 和 shiro-redis 整合 异常分析

shiro1.3 加入了时间总线。

而引入shiro-redis  ,会使用1.2.1的jar

解决办法    排除掉shiro-redis 的  shiro-core  的jar

shiro-spring-boot-starter 和 shiro-redis 整合 异常分析