java上传文件 获取 multipartFile

2020-08-21  本文已影响0人  Mr菜头

上传文件

public String uploadMapFiles(@RequestParam("point") MultipartFile multipartFile) 

等价于

public String uploadMapFiles(HttpServletRequest request) {
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest)request;
MultipartFile pic = multipartRequest.getFile("point");
上一篇下一篇

猜你喜欢

热点阅读