Skip to content

Commit ec1977d

Browse files
committed
Update RestClient docs about creating interface using WebClient
1 parent c3b5f5b commit ec1977d

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
@@ -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);

0 commit comments

Comments
 (0)