mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
Merge remote-tracking branch 'origin/v5-dev' into v5-dev
This commit is contained in:
@@ -155,6 +155,29 @@ public class BigExcelWriteTest {
|
|||||||
writer.close();
|
writer.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@Ignore
|
||||||
|
public void issue1210() {
|
||||||
|
// 通过工具类创建writer
|
||||||
|
String path = "e:/issue1210.xlsx";
|
||||||
|
FileUtil.del(path);
|
||||||
|
BigExcelWriter writer = ExcelUtil.getBigWriter(path);
|
||||||
|
writer.addHeaderAlias("id", "SN");
|
||||||
|
writer.addHeaderAlias("userName", "User Name");
|
||||||
|
List<Map<String, Object>> list = new ArrayList<>();
|
||||||
|
list.add(new HashMap<String, Object>(){{
|
||||||
|
put("id", 1);
|
||||||
|
put("userName", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
|
||||||
|
}});
|
||||||
|
list.add(new HashMap<String, Object>(){{
|
||||||
|
put("id", 2);
|
||||||
|
put("userName", "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");
|
||||||
|
}});
|
||||||
|
writer.write(list, true);
|
||||||
|
writer.autoSizeColumnAll();
|
||||||
|
writer.close();
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Ignore
|
@Ignore
|
||||||
public void writeBeanTest() {
|
public void writeBeanTest() {
|
||||||
|
Reference in New Issue
Block a user