alibaba/easyexcel

文档内容:不创建对象的写(可以使用maps设置head吗)

Open

#4.079 geöffnet am 17. Jan. 2025

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Java (7.599 Forks)batch import
help wanted

Repository-Metriken

Stars
 (33.728 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

文档:https://easyexcel.opensource.alibaba.com/docs/current/quickstart/write#%E4%B8%8D%E5%88%9B%E5%BB%BA%E5%AF%B9%E8%B1%A1%E7%9A%84%E5%86%99

比如能不能这样:


Map<String, String> headMap = new HashMap<>();
headMap.put("id", "序号");
headMap.put("name", "名称");

List<Map<String, String>> rows = new ArrayList<>();
rows.add(Map.of("id", 1, "name", "xxx"));
...

然后交给easyexcel帮忙导出

Contributor Guide