Skip to content

Commit 4e29f7b

Browse files
committed
Merge branch '2.1.x'
Closes gh-17762
2 parents f7f858b + 80f568b commit 4e29f7b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,10 @@ public RestTemplateBuilder detectRequestFactory(boolean detectRequestFactory) {
154154

155155
/**
156156
* Set a root URL that should be applied to each request that starts with {@code '/'}.
157-
* See {@link RootUriTemplateHandler} for details.
157+
* Since this works by adding a {@link UriTemplateHandler} to the
158+
* {@link RestTemplate}, the root URL will only apply when {@code String} variants of
159+
* the {@link RestTemplate} methods are used for specifying the request URL. See
160+
* {@link RootUriTemplateHandler} for details.
158161
* @param rootUri the root URI or {@code null}
159162
* @return a new builder instance
160163
*/

0 commit comments

Comments
 (0)