Update JackonAutoConfiguration to apply all http.mappers properties

Previously, only the http.mappers.json-sort-keys property was applied
by JacksonAutoConfiguration. This commit updates it to also apply the
http.mappers.json-pretty-print property as well.

See #1919
This commit is contained in:
Nicolás J. García 2014-11-13 16:01:56 -03:00 committed by Andy Wilkinson
parent 33dfab08de
commit f51b304c2a

View File

@ -90,6 +90,9 @@ public class JacksonAutoConfiguration {
objectMapper.configure(SerializationFeature.ORDER_MAP_ENTRIES_BY_KEYS,
true);
}
if (this.properties.isJsonPrettyPrint()) {
objectMapper.configure(SerializationFeature.INDENT_OUTPUT, true);
}
return objectMapper;
}