Browse Source

Merge branch '5.1.x'

pull/22911/head
Sebastien Deleuze 7 years ago
parent
commit
2b3df1fa30
  1. 9
      spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilder.java

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

@ -497,6 +497,8 @@ public class Jackson2ObjectMapperBuilder {
/** /**
* Specify one or more modules to be registered with the {@link ObjectMapper}. * Specify one or more modules to be registered with the {@link ObjectMapper}.
* Multiple invocations are not additive, the last one defines the modules to
* register.
* <p>Note: If this is set, no finding of modules is going to happen - not by * <p>Note: If this is set, no finding of modules is going to happen - not by
* Jackson, and not by Spring either (see {@link #findModulesViaServiceLoader}). * Jackson, and not by Spring either (see {@link #findModulesViaServiceLoader}).
* As a consequence, specifying an empty list here will suppress any kind of * As a consequence, specifying an empty list here will suppress any kind of
@ -512,6 +514,8 @@ public class Jackson2ObjectMapperBuilder {
/** /**
* Set a complete list of modules to be registered with the {@link ObjectMapper}. * Set a complete list of modules to be registered with the {@link ObjectMapper}.
* Multiple invocations are not additive, the last one defines the modules to
* register.
* <p>Note: If this is set, no finding of modules is going to happen - not by * <p>Note: If this is set, no finding of modules is going to happen - not by
* Jackson, and not by Spring either (see {@link #findModulesViaServiceLoader}). * Jackson, and not by Spring either (see {@link #findModulesViaServiceLoader}).
* As a consequence, specifying an empty list here will suppress any kind of * As a consequence, specifying an empty list here will suppress any kind of
@ -529,6 +533,8 @@ public class Jackson2ObjectMapperBuilder {
/** /**
* Specify one or more modules to be registered with the {@link ObjectMapper}. * Specify one or more modules to be registered with the {@link ObjectMapper}.
* Multiple invocations are not additive, the last one defines the modules
* to register.
* <p>Modules specified here will be registered after * <p>Modules specified here will be registered after
* Spring's autodetection of JSR-310 and Joda-Time, or Jackson's * Spring's autodetection of JSR-310 and Joda-Time, or Jackson's
* finding of modules (see {@link #findModulesViaServiceLoader}), * finding of modules (see {@link #findModulesViaServiceLoader}),
@ -545,7 +551,8 @@ public class Jackson2ObjectMapperBuilder {
/** /**
* Specify one or more modules by class to be registered with * Specify one or more modules by class to be registered with
* the {@link ObjectMapper}. * the {@link ObjectMapper}. Multiple invocations are not additive,
* the last one defines the modules to register.
* <p>Modules specified here will be registered after * <p>Modules specified here will be registered after
* Spring's autodetection of JSR-310 and Joda-Time, or Jackson's * Spring's autodetection of JSR-310 and Joda-Time, or Jackson's
* finding of modules (see {@link #findModulesViaServiceLoader}), * finding of modules (see {@link #findModulesViaServiceLoader}),

Loading…
Cancel
Save