mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
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:
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user