Skip to content

Commit 28e5468

Browse files
committed
Merge pull request #31917 from ghkim3221
* pr/31917: Polish "Fix usage of WebClientAdapter in reference documentation" Fix usage of WebClientAdapter in reference documentation Closes gh-31917
2 parents c7d2d67 + b1c0b65 commit 28e5468

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

framework-docs/modules/ROOT/pages/integration/rest-clients.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -906,8 +906,8 @@ For `WebClient`:
906906

907907
[source,java,indent=0,subs="verbatim,quotes"]
908908
----
909-
WebClient client = WebClient.builder().baseUrl("https://api.github.com/").build();
910-
WebClientAdapter adapter = WebClientAdapter.forClient(webClient)
909+
WebClient webClient = WebClient.builder().baseUrl("https://api.github.com/").build();
910+
WebClientAdapter adapter = WebClientAdapter.create(webClient);
911911
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builderFor(adapter).build();
912912
913913
RepositoryService service = factory.createClient(RepositoryService.class);
@@ -1090,7 +1090,7 @@ responses performed through the client:
10901090
.defaultStatusHandler(HttpStatusCode::isError, resp -> ...)
10911091
.build();
10921092
1093-
WebClientAdapter clientAdapter = WebClientAdapter.forClient(webClient);
1093+
WebClientAdapter clientAdapter = WebClientAdapter.create(webClient);
10941094
HttpServiceProxyFactory factory = HttpServiceProxyFactory
10951095
.builder(clientAdapter).build();
10961096
----

0 commit comments

Comments
 (0)