By default AcrossWebModule will attempt to automatically configure a
MultipartFilter to support multipart form data.
When correctly configured, this will enable multipart support for all servlets and web requests.
By default a
StandardServletMultipartFilter is being added, that builds on top of the Servlet 3.0 specification.
Servlets will still need a
MultipartConfigElement set for multipart data to be handled correctly.
The latter is done automatically for the
Multipart settings can be configured using the
spring.http.multipart.* properties from Spring Boot (
Alternatively you can provide a custom
This bean will be automatically picked up for the configuration.
If none is present, AcrossWebModule will create a default bean.
Disabling the automatic multipart resolving configuration can be done by setting property
If Apache Commons Fileupload is available on the classpath, the filter will be configured using a
It is also possible to manually create a
The bean name will determine how multipart resolving is applied:
Will still enable the
MultipartFilterto be registered but will use the configured bean as its internal resolver.
Will disable the
MultipartFilterregistration, but will register the resolver on the
DispatcherServlet. Multipart support will only be enabled on requests made through the
Spring Boot will automatically rename any