Clarify the deprecation status of HttpMapperProperties

This commit is contained in:
Dave Syer
2014-11-21 09:19:32 +00:00
parent 08988fd182
commit 5b044356dc
2 changed files with 5 additions and 0 deletions

View File

@@ -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;
/**
* Configuration properties to configure {@link HttpMessageConverter}s.
*
* @deprecated pleas use {@link JacksonProperties} instead
*
* @author Dave Syer
* @author Piotr Maj
* @author Sebastien Deleuze

View File

@@ -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();