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:
committed by
Andy Wilkinson
parent
33dfab08de
commit
f51b304c2a
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user