因为在之前版本的es并不支持bigdecimal处理方式
1全局禁止bigdecimal

JSON.DEFAULT_PARSER_FEATURE &= ~Feature.UseBigDecimal.getMask();

2,局部禁止

int disableDecimalFeature = JSON.DEFAULT_PARSER_FEATURE & ~Feature.UseBigDecimal.getMask();

String json = "....";
Class type = JSONObject.class;
JSON.parseObject(json, type, disableDecimalFeature);

更多推荐