diff --git a/spring-boot/src/main/java/org/springframework/boot/web/client/RestTemplateBuilder.java b/spring-boot/src/main/java/org/springframework/boot/web/client/RestTemplateBuilder.java index 3b2c527707..e22017826b 100644 --- a/spring-boot/src/main/java/org/springframework/boot/web/client/RestTemplateBuilder.java +++ b/spring-boot/src/main/java/org/springframework/boot/web/client/RestTemplateBuilder.java @@ -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...)