Skip to content

Commit

Permalink
Polish "Fix usage of WebClientAdapter in reference documentation"
Browse files Browse the repository at this point in the history
  • Loading branch information
snicoll committed Dec 28, 2023
1 parent 490aaa1 commit b1c0b65
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ For `WebClient`:
[source,java,indent=0,subs="verbatim,quotes"]
----
WebClient webClient = WebClient.builder().baseUrl("https://api.github.com/").build();
WebClientAdapter adapter = WebClientAdapter.create(webClient)
WebClientAdapter adapter = WebClientAdapter.create(webClient);
HttpServiceProxyFactory factory = HttpServiceProxyFactory.builderFor(adapter).build();
RepositoryService service = factory.createClient(RepositoryService.class);
Expand Down Expand Up @@ -1090,7 +1090,7 @@ responses performed through the client:
.defaultStatusHandler(HttpStatusCode::isError, resp -> ...)
.build();
WebClientAdapter clientAdapter = WebClientAdapter.forClient(webClient);
WebClientAdapter clientAdapter = WebClientAdapter.create(webClient);
HttpServiceProxyFactory factory = HttpServiceProxyFactory
.builder(clientAdapter).build();
----
Expand Down

0 comments on commit b1c0b65

Please sign in to comment.