From 05df4911540d1d087f271cc32d4e22bb3898acc2 Mon Sep 17 00:00:00 2001 From: Lucas Mantovani Date: Mon, 4 Jul 2022 14:47:23 -0300 Subject: [PATCH] Fix WebClientAdapter.createHttpServiceProxyFactory() example in ref docs * Remove build() call * Add call to afterPropertiesSet() Closes gh-28753 --- src/docs/asciidoc/integration.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/docs/asciidoc/integration.adoc b/src/docs/asciidoc/integration.adoc index f80c4fa21c8..947a734f94c 100644 --- a/src/docs/asciidoc/integration.adoc +++ b/src/docs/asciidoc/integration.adoc @@ -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); ----