Which annotation enables a servlet to efficiently process requests of typo multipart/form-data that
involve large files being uploaded by the client?
A.
@AcceptMultipart
B.
@MultiPartConfig
C.
@MultiPartFormData
D.
@WebServlet (multipart = true)
Explanation:
http://www.scribd.com/ilinchen2008/d/38764279-Servlet3-0-Specs (page 22, last
paragraph)
B
B
Sample:
@WebServlet(“/uploadFiles”)
@MultipartConfig(
fileSizeThreshold = 1024 * 1024 * 1, // 1 MB
maxFileSize = 1024 * 1024 * 10, // 10 MB
maxRequestSize = 1024 * 1024 * 15, // 15 MB
location = “D:/Uploads”
)
It is “B”. just like Neo show us.