You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/web/client/TestRestTemplate.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -171,8 +171,8 @@ public void setUriTemplateHandler(UriTemplateHandler handler) {
171
171
}
172
172
173
173
/**
174
-
* Returns the root URI applied by a {@link RootUriTemplateHandler} or {@code ""} if
175
-
* the root URI is not available.
174
+
* Returns the root URI applied by {@link RestTemplateBuilder#rootUri(String)} or
175
+
* {@code ""} if the root URI has not been applied.
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/client/RestTemplateBuilder.java
+4-6
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2023 the original author or authors.
2
+
* Copyright 2012-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -150,10 +150,8 @@ public RestTemplateBuilder detectRequestFactory(boolean detectRequestFactory) {
150
150
151
151
/**
152
152
* Set a root URL that should be applied to each request that starts with {@code '/'}.
153
-
* Since this works by adding a {@link UriTemplateHandler} to the
154
-
* {@link RestTemplate}, the root URL will only apply when {@code String} variants of
155
-
* the {@link RestTemplate} methods are used for specifying the request URL. See
156
-
* {@link RootUriTemplateHandler} for details.
153
+
* The root URL will only apply when {@code String} variants of the
154
+
* {@link RestTemplate} methods are used for specifying the request URL.
157
155
* @param rootUri the root URI or {@code null}
158
156
* @return a new builder instance
159
157
*/
@@ -639,7 +637,7 @@ public <T extends RestTemplate> T configure(T restTemplate) {
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/client/RootUriTemplateHandler.java
+12-3
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2021 the original author or authors.
2
+
* Copyright 2012-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -30,6 +30,7 @@
30
30
* {@link UriTemplateHandler} to set the root for URI that starts with {@code '/'}.
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/client/RestTemplateBuilderTests.java
+3-3
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2023 the original author or authors.
2
+
* Copyright 2012-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/client/RootUriTemplateHandlerTests.java
+2-1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2023 the original author or authors.
2
+
* Copyright 2012-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
0 commit comments