Skip to content

Commit 05df491

Browse files
authored
Fix WebClientAdapter.createHttpServiceProxyFactory() example in ref docs
* Remove build() call * Add call to afterPropertiesSet() Closes gh-28753
1 parent 338609a commit 05df491

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/docs/asciidoc/integration.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,8 @@ Two, create a proxy that will perform the declared HTTP exchanges:
390390
[source,java,indent=0,subs="verbatim,quotes"]
391391
----
392392
WebClient client = WebClient.builder().baseUrl("https://api.github.com/").build();
393-
HttpServiceProxyFactory factory = WebClientAdapter.createHttpServiceProxyFactory(client)).build();
393+
HttpServiceProxyFactory factory = WebClientAdapter.createHttpServiceProxyFactory(client);
394+
factory.afterPropertiesSet();
394395
395396
RepositoryService service = factory.createClient(RepositoryService.class);
396397
----

0 commit comments

Comments
 (0)