alexxiyang / shiro-redis

shiro only provide the support of ehcache and concurrentHashMap. Here is an implement of redis cache can be used by shiro. Hope it will help you!
MIT License
1.17k stars 446 forks source link

使用热部署导致冲突 A cannot be cast to A的问题 #122

Closed wuqiangchuan closed 4 years ago

wuqiangchuan commented 4 years ago

如标题,采用热部署将会造成无法转换的的问题 java.lang.ClassCastException: com.xxd.entity.User cannot be cast to com.xxd.entity.User at com.xxd.shiroSecurity.UserRealm.doGetAuthorizationInfo(UserRealm.java:40) ~[classes/:na]

能否有别的方式提供热部署,或者修复这个冲突的问题呢?

pom.xml如下:

org.crazycake shiro-redis-spring-boot-starter 3.2.1
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-devtools</artifactId>
        <optional>true</optional>  
    </dependency> 

........