the3rd

Results 5 comments of the3rd

用上面的代码测试,2.0.0~2.0.6对Long序列化后是“1”,自2.0.7开始,一直到2.0.42,序列化后都是“1L”。

> > 用上面的代码测试,2.0.0~2.0.6对Long序列化后是“1”,自2.0.7开始,一直到2.0.42,序列化后都是“1L”。 > > JSONWriter.Feature.NotWriteNumberClassName可以试一下 这个方式好使。 需要换用FastJsonRedisSerializer,并设置一下config。

@wenshao ```java package org.example; import com.alibaba.fastjson2.JSON; import com.alibaba.fastjson2.JSONObject; import org.junit.jupiter.api.Assertions; class Test { public static class A { private String a1; private String a2; public String getA1() { return a1;...