Jackson 2.0 with Spring 3.1

前端 未结 6 1296
面向向阳花
面向向阳花 2020-11-28 09:22

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

6条回答
  •  醉话见心
    2020-11-28 09:45

    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.

提交回复
热议问题