Skip to content

Commit 542e21b

Browse files
committed
Polish Jackson2ObjectMapperBuilder/FactoryBean javadoc
1 parent 566ea30 commit 542e21b

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilder.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,14 @@
6565
* <li>{@link DeserializationFeature#FAIL_ON_UNKNOWN_PROPERTIES} is disabled</li>
6666
* </ul>
6767
*
68-
* <p>Note that Jackson's JSR-310 and Joda-Time support modules will be registered automatically
69-
* when available (and when Java 8 and Joda-Time themselves are available, respectively).
68+
* <p>It also automatically registers the following well-known modules if they are
69+
* detected on the classpath:
70+
* <ul>
71+
* <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>
72+
* <li><a href="https://github.com/FasterXML/jackson-datatype-joda">jackson-datatype-joda</a>: support for Joda-Time types</li>
73+
* <li><a href="https://github.com/FasterXML/jackson-datatype-jsr310">jackson-datatype-jsr310</a>: support for Java 8 Date & Time API types</li>
74+
* <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>
75+
* </ul>
7076
*
7177
* <p>Tested against Jackson 2.2, 2.3, 2.4, 2.5, 2.6; compatible with Jackson 2.0 and higher.
7278
*

spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperFactoryBean.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,15 @@
108108
* &lt;/bean>
109109
* </pre>
110110
*
111+
* <p>It also automatically registers the following well-known modules if they are
112+
* detected on the classpath:
113+
* <ul>
114+
* <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>
115+
* <li><a href="https://github.com/FasterXML/jackson-datatype-joda">jackson-datatype-joda</a>: support for Joda-Time types</li>
116+
* <li><a href="https://github.com/FasterXML/jackson-datatype-jsr310">jackson-datatype-jsr310</a>: support for Java 8 Date & Time API types</li>
117+
* <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>
118+
* </ul>
119+
*
111120
* <p>In case you want to configure Jackson's {@link ObjectMapper} with a custom {@link Module},
112121
* you can register one or more such Modules by class name via {@link #setModulesToInstall}:
113122
*
@@ -117,10 +126,7 @@
117126
* &lt;/bean
118127
* </pre>
119128
*
120-
* Note that Jackson's JSR-310 and Joda-Time support modules will be registered automatically
121-
* when available (and when Java 8 and Joda-Time themselves are available, respectively).
122-
*
123-
* <p>Tested against Jackson 2.2, 2.3 and 2.4; compatible with Jackson 2.0 and higher.
129+
* <p>Tested against Jackson 2.2, 2.3, 2.4, 2.5, 2.6; compatible with Jackson 2.0 and higher.
124130
*
125131
* @author <a href="mailto:[email protected]">Dmitry Katsubo</a>
126132
* @author Rossen Stoyanchev

0 commit comments

Comments
 (0)