From 3f2983514d4dc3744dae7d9e912c8f7a554b8fd1 Mon Sep 17 00:00:00 2001 From: Antoine Rey Date: Wed, 26 Nov 2025 10:12:10 +0100 Subject: [PATCH] Update references for RestTemplateCustomizer and RestTemplateBuilder classes in documentation Starting from Spring Boot 4, the RestTemplateBuilder and RestTemplateBuilder classes have been moved from the org.springframework.boot.web.client package to the org.springframework.boot.restclient package Signed-off-by: Antoine Rey --- .../src/docs/antora/modules/how-to/pages/http-clients.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/spring-boot-docs/src/docs/antora/modules/how-to/pages/http-clients.adoc b/documentation/spring-boot-docs/src/docs/antora/modules/how-to/pages/http-clients.adoc index 536271c769ce..583b08569ab0 100644 --- a/documentation/spring-boot-docs/src/docs/antora/modules/how-to/pages/http-clients.adoc +++ b/documentation/spring-boot-docs/src/docs/antora/modules/how-to/pages/http-clients.adoc @@ -9,7 +9,7 @@ This section answers questions related to using them. [[howto.http-clients.rest-template-proxy-configuration]] == Configure RestTemplate to Use a Proxy -As described in xref:reference:io/rest-client.adoc#io.rest-client.resttemplate.customization[RestTemplate Customization], you can use a javadoc:org.springframework.boot.web.client.RestTemplateCustomizer[] with javadoc:org.springframework.boot.web.client.RestTemplateBuilder[] to build a customized javadoc:org.springframework.web.client.RestTemplate[]. +As described in xref:reference:io/rest-client.adoc#io.rest-client.resttemplate.customization[RestTemplate Customization], you can use a javadoc:org.springframework.boot.restclient.RestTemplateCustomizer[] with javadoc:org.springframework.boot.restclient.RestTemplateBuilder[] to build a customized javadoc:org.springframework.web.client.RestTemplate[]. This is the recommended approach for creating a javadoc:org.springframework.web.client.RestTemplate[] configured to use a proxy. The exact details of the proxy configuration depend on the underlying client request factory that is being used.