Rename preferred-mapper property so its clear it only applies to JSON

preferred-mapper has been renamed to preferred-json-mapper to make it
clear that it only affects the JSON mapper and that the XML mapper
that will be used (if any) is unaffected

See gh-2247
This commit is contained in:
Andy Wilkinson 2015-02-05 10:59:43 +00:00
parent 230048ae8b
commit b39ecdf006
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ import org.springframework.http.converter.StringHttpMessageConverter;
GsonHttpMessageConvertersConfiguration.class })
public class HttpMessageConvertersAutoConfiguration {
static final String PREFERRED_MAPPER_PROPERTY = "spring.http.converters.preferred-mapper";
static final String PREFERRED_MAPPER_PROPERTY = "spring.http.converters.preferred-json-mapper";
@Autowired(required = false)
private final List<HttpMessageConverter<?>> converters = Collections.emptyList();

View File

@ -148,7 +148,7 @@ public class HttpMessageConvertersAutoConfigurationTests {
JacksonAutoConfiguration.class,
HttpMessageConvertersAutoConfiguration.class);
EnvironmentTestUtils.addEnvironment(this.context,
"spring.http.converters.preferred-mapper:gson");
"spring.http.converters.preferred-json-mapper:gson");
this.context.refresh();
assertConverterBeanExists(GsonHttpMessageConverter.class,
"gsonHttpMessageConverter");