diff --git a/spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilder.java b/spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilder.java index b6c48e4ae4b..24bf68e1018 100644 --- a/spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilder.java +++ b/spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilder.java @@ -65,8 +65,14 @@ import org.springframework.util.StringUtils; *
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). + *
It also automatically registers the following well-known modules if they are + * detected on the classpath: + *
Tested against Jackson 2.2, 2.3, 2.4, 2.5, 2.6; compatible with Jackson 2.0 and higher. * diff --git a/spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperFactoryBean.java b/spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperFactoryBean.java index bf51310b341..82735c6ce4e 100644 --- a/spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperFactoryBean.java +++ b/spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperFactoryBean.java @@ -108,6 +108,15 @@ import org.springframework.context.ApplicationContextAware; * </bean> * * + *
It also automatically registers the following well-known modules if they are + * detected on the classpath: + *
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; * </bean * * - * 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). - * - *
Tested against Jackson 2.2, 2.3 and 2.4; compatible with Jackson 2.0 and higher. + *
Tested against Jackson 2.2, 2.3, 2.4, 2.5, 2.6; compatible with Jackson 2.0 and higher. * * @author Dmitry Katsubo * @author Rossen Stoyanchev