diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/reactive/function/client/WebClientSsl.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/reactive/function/client/WebClientSsl.java index ba33e619fb..0fe531e929 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/reactive/function/client/WebClientSsl.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/reactive/function/client/WebClientSsl.java @@ -31,7 +31,7 @@ import org.springframework.web.reactive.function.client.WebClient; * Typically used as follows:
* @Bean * public MyBean myBean(WebClient.Builder webClientBuilder, WebClientSsl ssl) { - * WebClient webClient = webClientBuilder.apply(ssl.forBundle("mybundle")).build(); + * WebClient webClient = webClientBuilder.apply(ssl.fromBundle("mybundle")).build(); * return new MyBean(webClient); * } *NOTE: Apply SSL configuration will replace any previously