alexxiyang/shiro-redis

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

wuqiangchuan opened this issue · 0 comments

如标题,采用热部署将会造成无法转换的的问题
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> 

........