我要休息一下,然后使用PostMapping ...
@PostMapping(value = "/upload", consumes = {"multipart/form-data"})
public Boolean uploadFile(@ModelAttribute UploadModel model, HttpServletRequest servletRequest) {...}
我的uploadModel是:
public class UploadModel extends RestRequest implements Serializable {
private MultipartFile[] files;
public MultipartFile[] getFiles() {
return files;
}
public void setFiles(MultipartFile[] files) {
this.files = files;
}}
我需要从Android设备上传具有显示进度的图像(一个请求中包含多个文件)... 有人可以帮我吗?