Version

  • Spring Boot 2.7.4
  • Spring MVC
  • Jackson-dataformat-xml

Question

When I add jackson-dataformat-xml to my pom.xml, all the MVC api output format becames xml instead of json. I think introducing a dependency is an autonomous action, maybe it's not intended to change the output format and shouldn't be triggered automatically.

Comment From: bclozel

Closing as a duplicate of #32494 We're still missing a sample application for that issue. Could you contribute one please?