Browse Source

修改测试案例

pull/2472/head
Jiaju Zhuang 3 years ago
parent
commit
086871fbfe
  1. 2
      easyexcel-test/src/test/java/com/alibaba/easyexcel/test/demo/web/WebTest.java

2
easyexcel-test/src/test/java/com/alibaba/easyexcel/test/demo/web/WebTest.java

@ -49,7 +49,7 @@ public class WebTest {
String fileName = URLEncoder.encode("测试", "UTF-8").replaceAll("\\+", "%20"); String fileName = URLEncoder.encode("测试", "UTF-8").replaceAll("\\+", "%20");
response.setHeader("Content-disposition", "attachment;filename*=utf-8''" + fileName + ".xlsx"); response.setHeader("Content-disposition", "attachment;filename*=utf-8''" + fileName + ".xlsx");
EasyExcel.write(response.getOutputStream()).sheet("模板").doWrite(data()); EasyExcel.write(response.getOutputStream(), DownloadData.class).sheet("模板").doWrite(data());
} }
/** /**

Loading…
Cancel
Save