fastJsonConfig.setSerializerFeatures(
SerializerFeature.DisableCircularReferenceDetect,
SerializerFeature.WriteEnumUsingToString,
SerializerFeature.WriteDateUseDateFormat,
SerializerFeature.WriteNullStringAsEmpty,
SerializerFeature.WriteNullListAsEmpty,
SerializerFeature.WriteNullNumberAsZero,
SerializerFeature.WriteNullBooleanAsFalse,
SerializerFeature.QuoteFieldNames);
fastJsonConfig.getSerializeConfig().put(BigInteger.class, ToStringSerializer.instance);
fastJsonConfig.getSerializeConfig().put(Long.class, ToStringSerializer.instance);
fastJsonConfig.getSerializeConfig().put(Long.TYPE, ToStringSerializer.instance);
暂无答案!
目前还没有任何答案,快来回答吧!