Affects: spring-web-5.2.3.RELEASE Enhancement request.
Context: Posting Multipart Form requests using WebClient.
Problem: Unable to specify boundary. MultipartHttpMessageWriter uses static method generateMultipartBoundary to generate boundaries.
Comment From: poutsma
You can customize the boundary by overriding `MultipartHttpMessageWriter::generateMultipartBoundary``. Is that enough for your needs?
Comment From: privettoli
@poutsma and then registering MultipartHttpMessageWriter as a @ Bean?
Comment From: poutsma
You'd have to use the ClientCodecConfigurer
to override the defaults and use custom codecs, as shown here: https://stackoverflow.com/questions/60394358/how-do-i-define-a-custom-httpmessageconverter-for-the-reactive-spring-webclient
Comment From: privettoli
@poutsma Thanks. I had resolved the problem I had with another approach, so I'm closing the issue.
Comment From: lizhixiang0
Hi,I have the same problem,How did you solve it?