Skip to content

Commit 091eca9

Browse files
Ryan Baxterrstoyanchev
andauthored
Use WebClient.create method
Co-authored-by: Rossen Stoyanchev <[email protected]>
1 parent d98ad0b commit 091eca9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/com/example/demo/DemoApplication.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@RestController
1313
public class DemoApplication {
1414

15-
private WebClient webClient = WebClient.builder().build();
15+
private WebClient webClient = WebClient.create();
1616

1717
public static void main(String[] args) {
1818
SpringApplication.run(DemoApplication.class, args);
@@ -25,4 +25,4 @@ public Mono<String> index() {
2525
return clientResponse.bodyToMono(String.class).flatMap(name -> Mono.just("Hello " + name + " from " + host));
2626
});
2727
}
28-
}
28+
}

0 commit comments

Comments
 (0)