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

This commit is contained in:
godot
2022-07-08 18:01:50 +08:00
parent 7d28d40607
commit a032452b15
6 changed files with 75 additions and 15 deletions
@@ -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);