Browse Source

Fix WebClientAdapter.createHttpServiceProxyFactory() example in ref docs

* Remove build() call
* Add call to afterPropertiesSet()

Closes gh-28753
pull/28759/head
Lucas Mantovani 4 years ago committed by GitHub
parent
commit
05df491154
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/docs/asciidoc/integration.adoc

3
src/docs/asciidoc/integration.adoc

@ -390,7 +390,8 @@ Two, create a proxy that will perform the declared HTTP exchanges: @@ -390,7 +390,8 @@ Two, create a proxy that will perform the declared HTTP exchanges:
[source,java,indent=0,subs="verbatim,quotes"]
----
WebClient client = WebClient.builder().baseUrl("https://api.github.com/").build();
HttpServiceProxyFactory factory = WebClientAdapter.createHttpServiceProxyFactory(client)).build();
HttpServiceProxyFactory factory = WebClientAdapter.createHttpServiceProxyFactory(client);
factory.afterPropertiesSet();
RepositoryService service = factory.createClient(RepositoryService.class);
----

Loading…
Cancel
Save