Closed fengyuchenglun closed 7 years ago
GenericFastJsonRedisSerializer与FastJsonRedisSerializer在spring boot热部署(devtool)重启后 redis FastJsonRedisSerializer反序列失败。出现 分别出现 java.lang.ClassCastException: com.forever.springboot.auth.entity.UserEntity cannot be cast to com.forever.springboot.auth.entity.UserEntity
com.alibaba.fastjson.JSONObject cannot be cast to com.forever.springboot.auth.entity.UserEntity。 默认Serializer没有问题。
@fengyuchenglun 看下这个:http://blog.csdn.net/xichenguan/article/details/73741835
谢谢 已经找到原因 jackjson也有同样的问题
麻烦,什么原因啊?我也遇到了
GenericFastJsonRedisSerializer与FastJsonRedisSerializer在spring boot热部署(devtool)重启后 redis FastJsonRedisSerializer反序列失败。出现 分别出现 java.lang.ClassCastException: com.forever.springboot.auth.entity.UserEntity cannot be cast to com.forever.springboot.auth.entity.UserEntity
com.alibaba.fastjson.JSONObject cannot be cast to com.forever.springboot.auth.entity.UserEntity。 默认Serializer没有问题。