public void importFile(@RequestParam("file") MultipartFile file) throws Exception {
if (file.isEmpty()) {
throw new DoValidException("传入文件不可为空");
}
String name = file.getOriginalFilename();
InputStream inputStream = file.getInputStream();
OutputStream outputStream = new FileOutputStream(System.getProperty("user.dir") + "/data/" + name);
IOUtils.copy(inputStream, outputStream);
outputStream.flush();
inputStream.close();
outputStream.close();
}