@MultipartConfig annotation is used to configure a servlet for handling mime type multipart/form-data, enabling file uploads from a client to a server.
The HttpServletRequest object of the corresponding servlet is responsible for making the mime attachments available via the getParts and getPart methods, allowing us to iterate over the various mime attachments.
Let's consider following web.xml file upload configuration.