Fix usage of WebClientAdapter in reference documentation

See gh-31917
This commit is contained in:
Gihwan Kim
2023-12-28 13:51:12 +01:00
committed by Stéphane Nicoll
parent c7d2d6716d
commit 490aaa1ed8
@@ -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);