@RequestMapping(value = "/import", method = RequestMethod.POST) @ResponseBody public Object importFailDate(MultipartFile file, HttpServletResponse response) throws IOException { Map<String, Object> resultMap = new HashMap<String, Object>(4); if (file == null) { resultMap.put("message", "上传文件不能为空"); return resultMap; } ExcelImport excelImport = new ExcelImport(); List<FsideePrepaysExcel> result = (ArrayList) excelImport.importExcel(file.getInputStream(), FsPrepaysExcel.class); return result; }