spring-projects/spring-boot

Provide auto-configuration for Jackson's XML data format

Closed this issue · 1 comments

tschut commented

Spring Boot 4 introduces a new JacksonAutoConfiguration. While the old version builds on Spring's Jackson2ObjectMapperBuilder, which can be used to create both Json mappers and Xml mappers, the new version builds on Jackson 3 directly (using JsonMapper.Builder and friends).

The new autoconfiguration only configures beans for JsonMapper and CborMapper. It would be nice (and ease migration) if similar beans to JsonMapper were offered for XmlMapper, e.g.

  • XmlMapper.Builder
  • XmlMapper
  • JacksonXmlMapperBuilderCustomizerConfiguration
  • ProblemDetailsConfiguration
tschut commented

Wow that was fast! Thanks @wilkinsona, awesome!