Skip to content

Commit

Permalink
Update RestClient docs about creating interface using WebClient
Browse files Browse the repository at this point in the history
  • Loading branch information
0x1306e6d committed Dec 28, 2023
1 parent c3b5f5b commit ec1977d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ec1977d

Please sign in to comment.