Skip to content

Commit b1c0b65

Browse files
committed
Polish "Fix usage of WebClientAdapter in reference documentation"
See gh-31917
1 parent 490aaa1 commit b1c0b65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ For `WebClient`:
907907
[source,java,indent=0,subs="verbatim,quotes"]
908908
----
909909
WebClient webClient = WebClient.builder().baseUrl("https://api.github.com/").build();
910-
WebClientAdapter adapter = WebClientAdapter.create(webClient)
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)