Disable flush after every ObjectMapper write (#3748)

This commit is contained in:
Jonathan Wei 2016-12-06 16:45:23 -08:00 committed by Fangjin Yang
parent b1bac9f2d3
commit d1896a2d62
1 changed files with 1 additions and 0 deletions

View File

@ -58,6 +58,7 @@ public class DefaultObjectMapper extends ObjectMapper
configure(MapperFeature.AUTO_DETECT_SETTERS, false); configure(MapperFeature.AUTO_DETECT_SETTERS, false);
configure(MapperFeature.ALLOW_FINAL_FIELDS_AS_MUTATORS, false); configure(MapperFeature.ALLOW_FINAL_FIELDS_AS_MUTATORS, false);
configure(SerializationFeature.INDENT_OUTPUT, false); configure(SerializationFeature.INDENT_OUTPUT, false);
configure(SerializationFeature.FLUSH_AFTER_WRITE_VALUE, false);
} }
@Override @Override