Clarify that RestTemplateBuilder overwrites default converters

See gh-13714
This commit is contained in:
Welton Rodrigo Torres Nascimento
2018-07-05 11:16:10 -03:00
committed by Andy Wilkinson
parent 17e9a2ee62
commit 3dbeff56e4

View File

@@ -201,7 +201,8 @@ public class RestTemplateBuilder {
/**
* Add additional {@link HttpMessageConverter HttpMessageConverters} that should be
* used with the {@link RestTemplate}.
* used with the {@link RestTemplate}. The final list of converters replace any
* RestTemplate came configured with.
* @param messageConverters the converters to add
* @return a new builder instance
* @see #messageConverters(HttpMessageConverter...)
@@ -214,7 +215,8 @@ public class RestTemplateBuilder {
/**
* Add additional {@link HttpMessageConverter HttpMessageConverters} that should be
* used with the {@link RestTemplate}.
* used with the {@link RestTemplate}. The final list of converters replace any
* RestTemplate came configured with.
* @param messageConverters the converters to add
* @return a new builder instance
* @see #messageConverters(HttpMessageConverter...)