Fastjson: 升级1.2.68,开启 SafeMode后,JSON串包含@type会转换对象失败,如何处理

Created on 29 May 2020  ·  7Comments  ·  Source: alibaba/fastjson

例如{"@type":"java.util.LinkedHashMap","barcode":"510998715202072226598","storeId":"20122707"}反序列化失败

Most helpful comment

我也遇到这样的问题了,想早点下班,求解

All 7 comments

我也遇到这样的问题了,求解

我也遇到这样的问题,1.2.68的修复方式直接抛出异常,含@type直接异常,看下来无解。修复得迁移数据删除@type。求解。

我也是,被困住了

求解求解

我也遇到这样的问题了,想早点下班,求解

开启safemode后,本身就不能使用@type这个能力了。safemode的设计初衷就是这样,所以在安全公告的时候都会提示考虑业务本身的影响

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joviqiao picture joviqiao  ·  3Comments

pkaq picture pkaq  ·  4Comments

cddesire picture cddesire  ·  3Comments

sd4324530 picture sd4324530  ·  3Comments

liubailin2017 picture liubailin2017  ·  4Comments