diff --git a/spring-web/src/main/java/org/springframework/http/client/MultipartBodyBuilder.java b/spring-web/src/main/java/org/springframework/http/client/MultipartBodyBuilder.java index fa724439374e..63c6d67cac1e 100644 --- a/spring-web/src/main/java/org/springframework/http/client/MultipartBodyBuilder.java +++ b/spring-web/src/main/java/org/springframework/http/client/MultipartBodyBuilder.java @@ -76,7 +76,7 @@ * * Mono<Void> result = webClient.post() * .uri("...") - * .body(multipartBody) + * .body(BodyInserters.fromMultipartData(multipartBody)) * .retrieve() * .bodyToMono(Void.class) *