|
|
|
@ -108,6 +108,15 @@ import org.springframework.context.ApplicationContextAware;
@@ -108,6 +108,15 @@ import org.springframework.context.ApplicationContextAware;
|
|
|
|
|
* </bean> |
|
|
|
|
* </pre> |
|
|
|
|
* |
|
|
|
|
* <p>It also automatically registers the following well-known modules if they are |
|
|
|
|
* detected on the classpath: |
|
|
|
|
* <ul> |
|
|
|
|
* <li><a href="https://github.com/FasterXML/jackson-datatype-jdk7">jackson-datatype-jdk7</a>: support for Java 7 types like {@link java.nio.file.Path}</li> |
|
|
|
|
* <li><a href="https://github.com/FasterXML/jackson-datatype-joda">jackson-datatype-joda</a>: support for Joda-Time types</li> |
|
|
|
|
* <li><a href="https://github.com/FasterXML/jackson-datatype-jsr310">jackson-datatype-jsr310</a>: support for Java 8 Date & Time API types</li> |
|
|
|
|
* <li><a href="https://github.com/FasterXML/jackson-datatype-jdk8">jackson-datatype-jdk8</a>: support for other Java 8 types like {@link java.util.Optional}</li> |
|
|
|
|
* </ul> |
|
|
|
|
* |
|
|
|
|
* <p>In case you want to configure Jackson's {@link ObjectMapper} with a custom {@link Module}, |
|
|
|
|
* you can register one or more such Modules by class name via {@link #setModulesToInstall}: |
|
|
|
|
* |
|
|
|
@ -117,10 +126,7 @@ import org.springframework.context.ApplicationContextAware;
@@ -117,10 +126,7 @@ import org.springframework.context.ApplicationContextAware;
|
|
|
|
|
* </bean |
|
|
|
|
* </pre> |
|
|
|
|
* |
|
|
|
|
* Note that Jackson's JSR-310 and Joda-Time support modules will be registered automatically |
|
|
|
|
* when available (and when Java 8 and Joda-Time themselves are available, respectively). |
|
|
|
|
* |
|
|
|
|
* <p>Tested against Jackson 2.2, 2.3 and 2.4; compatible with Jackson 2.0 and higher. |
|
|
|
|
* <p>Tested against Jackson 2.2, 2.3, 2.4, 2.5, 2.6; compatible with Jackson 2.0 and higher. |
|
|
|
|
* |
|
|
|
|
* @author <a href="mailto:dmitry.katsubo@gmail.com">Dmitry Katsubo</a> |
|
|
|
|
* @author Rossen Stoyanchev |
|
|
|
|