From 4f6d74c57741171be62c0cbfd539cdd7e5c24829 Mon Sep 17 00:00:00 2001 From: "jipengfei.jpf" Date: Thu, 22 Nov 2018 09:44:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=97=E7=AC=A6=E4=B8=B2?= =?UTF-8?q?=E6=95=B0=E5=AD=97=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index df4e7801..728fb233 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ Java解析、生成Excel比较有名的框架有Apache poi、jxl。但他们都 ## 快速开始 ### 读Excel 测试代码地址:[https://github.com/alibaba/easyexcel/blob/master/src/test/java/com/alibaba/easyexcel/test/ReadTest.java](/src/test/java/com/alibaba/easyexcel/test/ReadTest.java) + 读07版小于1000行数据返回List> ``` List data = EasyExcelFactory.read(inputStream, new Sheet(1, 0)); @@ -132,10 +133,11 @@ public class Down { Sheet sheet1 = new Sheet(1, 0); sheet1.setSheetName("第一个sheet"); writer.write0(getListString(), sheet1); + writer.finish(); response.setContentType("multipart/form-data"); response.setCharacterEncoding("utf-8"); response.setHeader("Content-disposition", "attachment;filename="+fileName+".xlsx"); - out.flush(); + out.flush(); } } }