master
Stephane Nicoll 8 years ago
parent 59a24b406a
commit 2a4ee07cb3
  1. 2
      spring-web/src/main/java/org/springframework/web/client/reactive/WebClient.java

@ -58,7 +58,7 @@ import org.springframework.util.ClassUtils;
* static imports: ClientWebRequestBuilder.*, ResponseExtractors.* * static imports: ClientWebRequestBuilder.*, ResponseExtractors.*
* *
* // should be shared between HTTP calls * // should be shared between HTTP calls
* WebClient client = new WebClient(new ReactorHttpClient()); * WebClient client = new WebClient(new ReactorClientHttpConnector());
* *
* Mono<String> result = client * Mono<String> result = client
* .perform(get("http://example.org/resource").accept(MediaType.TEXT_PLAIN)) * .perform(get("http://example.org/resource").accept(MediaType.TEXT_PLAIN))

Loading…
Cancel
Save