Is Spring MVC 3.1 compatible with Jackson 2.0? Will Spring MVC's automatic detection of Jackson on the classpath, and delegation to Jackson for requests with a JSON content-type still work?
As you can see above, the Spring Boot parent POM uses an older version of Jackson (2.6. 5).
Spring Boot and JacksonThe Spring Boot parent POM includes Jackson dependencies.
Spring Framework and Spring Boot provide builtin support for Jackson based XML serialization/deserialization. As soon as you include the jackson-dataformat-xml dependency to your project, it is automatically used instead of JAXB2.
Jackson is one of the most popular Java JSON libraries, and is the one I use most frequently. In this post I'll pick a fairly complex JSON document and three queries which I want to make using Jackson. I'll compare three different approaches: Tree model.
Keith Donald (of spring source) tweeted the following a while back.
Spring MVC support for Jackson 2; also works with Jackson's native "pretty print" feature https://gist.github.com/2423129
I haven't tried the MappingJackson2HttpMessageConverter
found in the gist above but it would surprise me if it did not work.
Support for Jackson 2 has been added in Spring 3.2, and has also backported to Spring 3.1.2 (SPR-9507)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With