perf[storage]: 优化json输出格式,减少换行,增加行号

This commit is contained in:
godot committed 2022-07-08 18:01:50 +08:00
1 parent 7d28d40607
commit a032452b15
6 files changed
+75 -15

No files matched your search

@@ -59,7 +59,6 @@ public abstract class JsonUtils {
DefaultPrettyPrinter prettyPrinter = (DefaultPrettyPrinter) MAPPER.getSerializationConfig().getDefaultPrettyPrinter();
DefaultPrettyPrinter.Indenter indenter = new DefaultIndenter(StringUtils.TAB_ASCII, FileUtils.LS);
prettyPrinter.indentObjectsWith(indenter);
prettyPrinter.indentArraysWith(indenter);
MAPPER_TURBO.setSerializationInclusion(JsonInclude.Include.NON_NULL);
MAPPER_TURBO.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);