MultipartRequest multipartRequest = (MultipartRequest) request;
//获取上传的文件信息
MultipartFile file = multipartRequest.getFile("file");
//获取文件的名称
String name = file.getOriginalFilename();
String destRoot = MvcUpload.getDestRoot();
String path = destRoot + "/excel/" + MvcUpload.getDateFolder()+"/";
//创建上传的文件的目录
FileUtils.makedir(path);
File upfile = new File(path + name);
//文件放到该目录下
file.transferTo(upfile);