

There is no default resolver implementation used for Spring DispatcherServlets, as an application might choose to parse its multipart requests itself. We are going to use MultipartResolver, particularly CommonsMultipartResolver for an added advantage. In the demo app, we will try to upload a document, particularly an avatar for a user account. In this article, I will describe how we can integrate OpenAPI (Swagger) specification to a spring boot project, particularly focusing on handling multipart/form-data. This marks that the component has the lowest priority among all other similar components. The default value is Ordered.LOWEST_PRECEDENCE. It has an optional value argument that determines the order of the component. The annotation defines the sorting order of an annotated component or bean. In Spring, and mainly in Spring Boot, the auto-configuration feature gives us big-time help even though sometimes we have to disable some features to add custom once or to change the order they are sorted in. This leads us to research how to satisfy the requirement. Mostly in REST APIs, we are accustomed to using JSON input and output while it is XML for SOAP web services. while working on a requirement, there came a need to upload a file for further processing.
