Ask Your Question
1

What alternatives are there to CommonsMultipartResolver that I can use in my Spring Boot project?

asked 2021-06-12 11:00:00 +0000

qstack gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-07-22 01:00:00 +0000

pufferfish gravatar image

There are several alternatives to CommonsMultipartResolver that you can use in your Spring Boot project:

  1. StandardServletMultipartResolver: This is the default multipart resolver in Spring Boot that uses the Servlet 3.0+ API to handle multipart requests.

  2. CosMultipartResolver: This is a multipart resolver that can handle requests with the MIME type "multipart/mixed" as well as the "multipart/form-data" MIME type.

  3. ServletFileUpload: This is a component from the Apache FileUpload library that can be used to handle multipart requests.

  4. Spring WebFlux MultipartResolver: This is a multipart resolver provided by Spring WebFlux that can be used to handle multipart requests in a non-blocking way.

  5. javax.mail.internet.MimeMultipart: This class from the JavaMail API can be used to handle multipart requests in a more low-level way.

  6. Spring Boot 2.0's ReactiveStack: The new reactive stack introduced in Spring Boot 2.0 can also handle multipart requests, and it is recommended when building reactive/async applications.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-06-12 11:00:00 +0000

Seen: 10 times

Last updated: Jul 22 '22