jjzjj

MultipartConfigElement

全部标签

java - 用于 Servlet 3.0 的 MultipartResolver 的 Spring 4 Java 配置

我对SpringMVC配置采用全Java方法,无法弄清楚如何以编程方式将MultipartConfigElement与我的DispatcherServlet相关联。Spring文档指出:InordertouseServlet3.0basedmultipartparsing,youneedtomarktheDispatcherServletwitha"multipart-config"sectioninweb.xml,orwithajavax.servlet.MultipartConfigElementinprogrammaticServletregistration...http://