Annotation Type MultipartConfig

@Target(TYPE) @Retention(RUNTIME) public @interface MultipartConfig
This annotation is used to indicate that the Servlet on which it is declared expects requests to made using the multipart/form-data MIME type.

Part components of a given multipart/form-data request are retrieved by a Servlet annotated with MultipartConfig by calling HttpServletRequest.getPart(java.lang.String) or HttpServletRequest.getParts().

E.g. @WebServlet("/upload")}
@MultipartConfig() public class UploadServlet extends HttpServlet ... }
Servlet 3.0