1.Maven
org.apache.poi
poi
3.17
org.apache.poi
poi-ooxml
3.17
commons-collections
commons-collections
3.2.1
commons-beanutils
commons-beanutils
1.8.3
2.后台代码
public void exportXls() throws IOException {
//用排序的Map且Map的键应与ExcelCell注解的index对应
Map map = new LinkedHashMap<>();
map.put("a","姓名");
map.put("b","年龄");
map.put("c","性别");
map.put("d","出生日期");
Collection