Skip to content

Commit

Permalink
Clarify that RestTemplateBuilder overwrites default converters
Browse files Browse the repository at this point in the history
  • Loading branch information
weltonrodrigo authored and wilkinsona committed Oct 1, 2018
1 parent 17e9a2e commit 3dbeff5
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ public RestTemplateBuilder messageConverters(

/**
* 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...)
Expand All @@ -214,7 +215,8 @@ public RestTemplateBuilder additionalMessageConverters(

/**
* 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...)
Expand Down

0 comments on commit 3dbeff5

Please sign in to comment.