Browse Source

Clarify the deprecation status of HttpMapperProperties

pull/1979/head
Dave Syer 11 years ago
parent
commit
5b044356dc
  1. 3
      spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/HttpMapperProperties.java
  2. 2
      spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/HttpMessageConvertersAutoConfiguration.java

3
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/HttpMapperProperties.java

@ -18,6 +18,7 @@ package org.springframework.boot.autoconfigure.web; @@ -18,6 +18,7 @@ package org.springframework.boot.autoconfigure.web;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.boot.autoconfigure.jackson.JacksonProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.http.converter.HttpMessageConverter;
@ -26,6 +27,8 @@ import com.fasterxml.jackson.databind.SerializationFeature; @@ -26,6 +27,8 @@ import com.fasterxml.jackson.databind.SerializationFeature;
/**
* Configuration properties to configure {@link HttpMessageConverter}s.
*
* @deprecated pleas use {@link JacksonProperties} instead
*
* @author Dave Syer
* @author Piotr Maj
* @author Sebastien Deleuze

2
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/HttpMessageConvertersAutoConfiguration.java

@ -71,6 +71,8 @@ public class HttpMessageConvertersAutoConfiguration { @@ -71,6 +71,8 @@ public class HttpMessageConvertersAutoConfiguration {
@SuppressWarnings("deprecation")
protected static class MappingJackson2HttpMessageConverterConfiguration {
// This can be removed when the deprecated class is removed (the ObjectMapper will
// already have all the correct properties).
@Autowired
private HttpMapperProperties properties = new HttpMapperProperties();

Loading…
Cancel
Save