From ec1977deda49e8350b575edcf92873c4ac7bca2f Mon Sep 17 00:00:00 2001 From: Gihwan Kim Date: Thu, 28 Dec 2023 21:02:27 +0900 Subject: [PATCH] Update `RestClient` docs about creating interface using `WebClient` --- .../modules/ROOT/pages/integration/rest-clients.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework-docs/modules/ROOT/pages/integration/rest-clients.adoc b/framework-docs/modules/ROOT/pages/integration/rest-clients.adoc index 9350587756f7..04ef7c970e08 100644 --- a/framework-docs/modules/ROOT/pages/integration/rest-clients.adoc +++ b/framework-docs/modules/ROOT/pages/integration/rest-clients.adoc @@ -906,8 +906,8 @@ For `WebClient`: [source,java,indent=0,subs="verbatim,quotes"] ---- - WebClient client = WebClient.builder().baseUrl("https://api.github.com/").build(); - WebClientAdapter adapter = WebClientAdapter.forClient(webClient) + WebClient webClient = WebClient.builder().baseUrl("https://api.github.com/").build(); + WebClientAdapter adapter = WebClientAdapter.create(webClient) HttpServiceProxyFactory factory = HttpServiceProxyFactory.builderFor(adapter).build(); RepositoryService service = factory.createClient(RepositoryService.class);