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