|
|
|
@ -94,13 +94,13 @@ import org.springframework.context.ApplicationContextAware; |
|
|
|
* <bean class="org.springframework.http.converter.json.Jackson2ObjectMapperFactoryBean"> |
|
|
|
* <bean class="org.springframework.http.converter.json.Jackson2ObjectMapperFactoryBean"> |
|
|
|
* <property name="featuresToEnable"> |
|
|
|
* <property name="featuresToEnable"> |
|
|
|
* <array> |
|
|
|
* <array> |
|
|
|
* <util:constant static-field="com.fasterxml.jackson.databind.SerializationFeature$WRAP_ROOT_VALUE"/> |
|
|
|
* <util:constant static-field="com.fasterxml.jackson.databind.SerializationFeature.WRAP_ROOT_VALUE"/> |
|
|
|
* <util:constant static-field="com.fasterxml.jackson.databind.SerializationFeature$CLOSE_CLOSEABLE"/> |
|
|
|
* <util:constant static-field="com.fasterxml.jackson.databind.SerializationFeature.CLOSE_CLOSEABLE"/> |
|
|
|
* </array> |
|
|
|
* </array> |
|
|
|
* </property> |
|
|
|
* </property> |
|
|
|
* <property name="featuresToDisable"> |
|
|
|
* <property name="featuresToDisable"> |
|
|
|
* <array> |
|
|
|
* <array> |
|
|
|
* <util:constant static-field="com.fasterxml.jackson.databind.MapperFeature$USE_ANNOTATIONS"/> |
|
|
|
* <util:constant static-field="com.fasterxml.jackson.databind.MapperFeature.USE_ANNOTATIONS"/> |
|
|
|
* </array> |
|
|
|
* </array> |
|
|
|
* </property> |
|
|
|
* </property> |
|
|
|
* </bean> |
|
|
|
* </bean> |
|
|
|
@ -370,8 +370,9 @@ public class Jackson2ObjectMapperFactoryBean implements FactoryBean<ObjectMapper |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Customize the construction of Jackson handlers ({@link JsonSerializer}, {@link JsonDeserializer}, |
|
|
|
* Customize the construction of Jackson handlers |
|
|
|
* {@link KeyDeserializer}, {@code TypeResolverBuilder} and {@code TypeIdResolver}). |
|
|
|
* ({@link JsonSerializer}, {@link JsonDeserializer}, {@link KeyDeserializer}, |
|
|
|
|
|
|
|
* {@code TypeResolverBuilder} and {@code TypeIdResolver}). |
|
|
|
* @since 4.1.3 |
|
|
|
* @since 4.1.3 |
|
|
|
* @see Jackson2ObjectMapperFactoryBean#setApplicationContext(ApplicationContext) |
|
|
|
* @see Jackson2ObjectMapperFactoryBean#setApplicationContext(ApplicationContext) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@ -380,8 +381,9 @@ public class Jackson2ObjectMapperFactoryBean implements FactoryBean<ObjectMapper |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Set the builder {@link ApplicationContext} in order to autowire Jackson handlers ({@link JsonSerializer}, |
|
|
|
* Set the builder {@link ApplicationContext} in order to autowire Jackson handlers |
|
|
|
* {@link JsonDeserializer}, {@link KeyDeserializer}, {@code TypeResolverBuilder} and {@code TypeIdResolver}). |
|
|
|
* ({@link JsonSerializer}, {@link JsonDeserializer}, {@link KeyDeserializer}, |
|
|
|
|
|
|
|
* {@code TypeResolverBuilder} and {@code TypeIdResolver}). |
|
|
|
* @since 4.1.3 |
|
|
|
* @since 4.1.3 |
|
|
|
* @see Jackson2ObjectMapperBuilder#applicationContext(ApplicationContext) |
|
|
|
* @see Jackson2ObjectMapperBuilder#applicationContext(ApplicationContext) |
|
|
|
* @see SpringHandlerInstantiator |
|
|
|
* @see SpringHandlerInstantiator |
|
|
|
|