您好,欢迎来到筏尚旅游网。
搜索
您的当前位置:首页Layer文件上传操作

Layer文件上传操作

来源:筏尚旅游网
Layer⽂件上传操作

1:upload.html

2:后台(Spring-boot)

/**

* 实现⽂件上传 * */

@RequestMapping(value = \"/ramanage\ @ResponseBody

public List> ramanage(@RequestParam(\"file\") MultipartFile file){ List> result = new ArrayList<>(); try {

InputStream input = file.getInputStream(); Workbook wb = new HSSFWorkbook(input); Sheet sheet = wb.getSheetAt(0); int rowNum = sheet.getLastRowNum()+1; Map map; for(int i=1; i//容器名称

Cell containerCell = row.getCell(0);

String container = containerCell.getStringCellValue(); //税号

Cell nsrsbhCell = row.getCell(1);

String nsrsbh = nsrsbhCell.getStringCellValue(); map = new HashMap<>(); map.put(\"nsrsbh\

map.put(\"container\ result.add(map); }

} catch (IOException e) { e.printStackTrace(); }

return result; }

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- efsc.cn 版权所有

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务