alibaba / fastjson

FASTJSON 2.0.x has been released, faster and more secure, recommend you upgrade.
https://github.com/alibaba/fastjson2/wiki/fastjson_1_upgrade_cn
Apache License 2.0
25.75k stars 6.5k forks source link

GenericFastJsonRedisSerializer与FastJsonRedisSerializer 热部署问题 #1577

Closed fengyuchenglun closed 7 years ago

fengyuchenglun commented 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没有问题。

lihengming commented 7 years ago

@fengyuchenglun 看下这个:http://blog.csdn.net/xichenguan/article/details/73741835

fengyuchenglun commented 7 years ago

谢谢 已经找到原因 jackjson也有同样的问题

guowenmeng commented 5 years ago

谢谢 已经找到原因 jackjson也有同样的问题

麻烦,什么原因啊?我也遇到了