From 0d9ff3b13bf78da85883281276269c2ccf5faa3e Mon Sep 17 00:00:00 2001 From: Heo YounHaeng <44353046+heoYH@users.noreply.github.com> Date: Mon, 5 Jun 2023 15:32:37 +0900 Subject: [PATCH] Update MultipartBodyBuilder Update MultipartBodyBuilder example document --- .../org/springframework/http/client/MultipartBodyBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) *