1、上传文件:
//上传文件(https://www.jianshu.com/p/e2795b9e7aaf) multipartResolver = (MultipartHttpServletRequest) HttpServletResponse; Map<String, MultipartFile> multiFileMap = multipartResolver.getFileMap(); MultipartFile mfile = multiFileMap.get(filename); File saveFile = new File(savedFileName); mfile.transferTo(saveFile); //解析excel 利用workbook FileInputStream in = new FileInputStream(file); wb = new HSSFWorkbook(in); Sheet sheet = wb.getSheetAt(0); Row row = sheet.getRow(i); row.getCell()
原文:https://www.cnblogs.com/csyusu/p/11096609.html