public class POIExcelUtil extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
FILE_EXTENSION_XLS |
static String |
FILE_EXTENSION_XLSX |
| 构造器和说明 |
|---|
POIExcelUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> org.apache.poi.ss.usermodel.Workbook |
excelExport(Map<String,String> maps,
List<T> list,
String type)
功能描述: 导出excel
|
static org.apache.poi.ss.usermodel.Workbook |
excelExportByMap(Map<String,String> maps,
List<Map<String,Object>> list,
String type,
Map<String,Map<String,String>> format)
功能描述:
|
public static <T> org.apache.poi.ss.usermodel.Workbook excelExport(Map<String,String> maps, List<T> list, String type)
maps - maps 属性表,成员属性age为KEY,中文名称为VALUElist - 需要导出的数据列表对象type - 文件类型 xls 或者 xlsxpublic static org.apache.poi.ss.usermodel.Workbook excelExportByMap(Map<String,String> maps, List<Map<String,Object>> list, String type, Map<String,Map<String,String>> format)
maps - 属性表,成员属性age为KEY,中文名称为VALUElist - 需要导出的数据Map集合type - 文件类型 xls 或者 xlsxformat - Copyright © 2018. All rights reserved.