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
pull/2459/head
Andy Wilkinson 10 years ago
parent 230048ae8b
commit b39ecdf006

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

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

Loading…
Cancel
Save