Add Jackson 2 HttpMessageConverter and View
Jackson 2 uses completely new package names and new maven artifact ids.
This change adds Jackson 2 as an optional dependency and also provides
MappingJackson2HttpMessageConverter and MappingJackson2JsonView for use
with the new version.
The MVC namespace and the MVC Java config detect and use
MappingJackson2HttpMessageConverter if Jackson 2 is present.
Otherwise if Jackson 1.x is present,
then MappingJacksonHttpMessageConverter is used.
Issue: SPR-9302
Backport-Issue: SPR-9507
Backport-Commit: e63ca04fdb
This commit is contained in:
@@ -24,6 +24,7 @@ Import-Template:
|
||||
org.apache.velocity.*;version="[1.5.0, 2.0.0)";resolution:=optional,
|
||||
org.apache.velocity.tools.*;version="[1.4.0, 3.0.0)";resolution:=optional,
|
||||
org.codehaus.jackson.*;version="[1.3.0, 2.0.0)";resolution:=optional,
|
||||
com.fasterxml.jackson.*;version="[2.0.0, 3.0.0)";resolution:=optional,
|
||||
org.springframework.beans.*;version=${spring.osgi.range},
|
||||
org.springframework.context.*;version=${spring.osgi.range},
|
||||
org.springframework.core.*;version=${spring.osgi.range},
|
||||
|
||||
Reference in New Issue
Block a user