shiro缓存管理时报错java.lang.ClassCastException: com.px.myshiro.domain.User cannot be cast to com.px.myshir
一、异常java.lang.ClassCastException: com.px.myshiro.domain.User cannot be cast to com.px.myshiro.domain.User问题user不能转换为user,分明就是同一个user,怎么可能不能转换呢?需要转换吗?分析这主要发生在缓存服务时。主要原因是:**同一个类被不同的加载器加载**当对象序列...
原创
2019-08-05 17:54:47 ·
1315 阅读 ·
2 评论