Skip to content

Commit da1fde6

Browse files
committed
Merge branch '1.5.x' into 2.0.x
2 parents fd10226 + 1471db2 commit da1fde6

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/client/RestTemplateBuilder.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ public RestTemplateBuilder rootUri(String rootUri) {
167167
/**
168168
* Set the {@link HttpMessageConverter HttpMessageConverters} that should be used with
169169
* the {@link RestTemplate}. Setting this value will replace any previously configured
170-
* converters.
170+
* converters and any converters configured on the builder will replace RestTemplate's
171+
* default converters.
171172
* @param messageConverters the converters to set
172173
* @return a new builder instance
173174
* @see #additionalMessageConverters(HttpMessageConverter...)
@@ -181,7 +182,8 @@ public RestTemplateBuilder messageConverters(
181182
/**
182183
* Set the {@link HttpMessageConverter HttpMessageConverters} that should be used with
183184
* the {@link RestTemplate}. Setting this value will replace any previously configured
184-
* converters.
185+
* converters and any converters configured on the builder will replace RestTemplate's
186+
* default converters.
185187
* @param messageConverters the converters to set
186188
* @return a new builder instance
187189
* @see #additionalMessageConverters(HttpMessageConverter...)
@@ -199,7 +201,8 @@ public RestTemplateBuilder messageConverters(
199201

200202
/**
201203
* Add additional {@link HttpMessageConverter HttpMessageConverters} that should be
202-
* used with the {@link RestTemplate}.
204+
* used with the {@link RestTemplate}. Any converters configured on the builder will
205+
* replace RestTemplate's default converters.
203206
* @param messageConverters the converters to add
204207
* @return a new builder instance
205208
* @see #messageConverters(HttpMessageConverter...)
@@ -212,7 +215,8 @@ public RestTemplateBuilder additionalMessageConverters(
212215

213216
/**
214217
* Add additional {@link HttpMessageConverter HttpMessageConverters} that should be
215-
* used with the {@link RestTemplate}.
218+
* used with the {@link RestTemplate}. Any converters configured on the builder will
219+
* replace RestTemplate's default converters.
216220
* @param messageConverters the converters to add
217221
* @return a new builder instance
218222
* @see #messageConverters(HttpMessageConverter...)

0 commit comments

Comments
 (0)