更新时间:2023-02-23 21:58:28
MultipartHttpServletRequest延伸MultipartRequest,其中有用于访问文件的方法。
MultipartHttpServletRequest extends MultipartRequest, which has methods for accessing the files.
您可以这样做:
MultipartFile file = request.getFile(paramName);
请参阅http://docs.spring.io/spring-framework/docs/3.2.0.M1/api/org/springframework/web/multipart/MultipartRequest.html