Skip to content

Commit 121aad8

Browse files
committed
Merge branch '2.0.x'
2 parents d145fab + da1fde6 commit 121aad8

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
@@ -154,7 +154,8 @@ public RestTemplateBuilder rootUri(String rootUri) {
154154
/**
155155
* Set the {@link HttpMessageConverter HttpMessageConverters} that should be used with
156156
* the {@link RestTemplate}. Setting this value will replace any previously configured
157-
* converters.
157+
* converters and any converters configured on the builder will replace RestTemplate's
158+
* default converters.
158159
* @param messageConverters the converters to set
159160
* @return a new builder instance
160161
* @see #additionalMessageConverters(HttpMessageConverter...)
@@ -168,7 +169,8 @@ public RestTemplateBuilder messageConverters(
168169
/**
169170
* Set the {@link HttpMessageConverter HttpMessageConverters} that should be used with
170171
* the {@link RestTemplate}. Setting this value will replace any previously configured
171-
* converters.
172+
* converters and any converters configured on the builder will replace RestTemplate's
173+
* default converters.
172174
* @param messageConverters the converters to set
173175
* @return a new builder instance
174176
* @see #additionalMessageConverters(HttpMessageConverter...)
@@ -186,7 +188,8 @@ public RestTemplateBuilder messageConverters(
186188

187189
/**
188190
* Add additional {@link HttpMessageConverter HttpMessageConverters} that should be
189-
* used with the {@link RestTemplate}.
191+
* used with the {@link RestTemplate}. Any converters configured on the builder will
192+
* replace RestTemplate's default converters.
190193
* @param messageConverters the converters to add
191194
* @return a new builder instance
192195
* @see #messageConverters(HttpMessageConverter...)
@@ -199,7 +202,8 @@ public RestTemplateBuilder additionalMessageConverters(
199202

200203
/**
201204
* Add additional {@link HttpMessageConverter HttpMessageConverters} that should be
202-
* used with the {@link RestTemplate}.
205+
* used with the {@link RestTemplate}. Any converters configured on the builder will
206+
* replace RestTemplate's default converters.
203207
* @param messageConverters the converters to add
204208
* @return a new builder instance
205209
* @see #messageConverters(HttpMessageConverter...)

0 commit comments

Comments
 (0)