excel导出表头 获取对象的属性和属性Comment备注
Map<String, String> excelTitle = new HashMap<String, String>();
excelTitle.put("nickname", "创建昵称");
excelTitle.put("type", "日志类型");
excelTitle.put("tag", "日志标识");
excelTitle.put("src", "执行类");
excelTitle.put("msg", "日志内容");
@SuppressWarnings("unchecked")
SXSSFWorkbook wb = ExcelSheetParser.createWorkBook(sheetName,excelTitle, (List<Map<String, Object>>)list);
这样我就不用写map了 直接写成对象自己匹配
添加回复
请先登陆