public class ExcelUtils extends Object
| 构造器和说明 |
|---|
ExcelUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
exportExcel(List<?> list,
Class<?> pojoClass,
String fileName,
cn.afterturn.easypoi.excel.entity.ExportParams exportParams,
javax.servlet.http.HttpServletResponse response)
excel 导出
|
static void |
exportExcel(List<?> list,
String title,
String sheetName,
Class<?> pojoClass,
String fileName,
boolean isCreateHeader,
javax.servlet.http.HttpServletResponse response)
excel 导出
|
static void |
exportExcel(List<?> list,
String title,
String sheetName,
Class<?> pojoClass,
String fileName,
javax.servlet.http.HttpServletResponse response)
excel 导出
|
static void |
exportExcel(List<Map<String,Object>> list,
String fileName,
javax.servlet.http.HttpServletResponse response)
excel 导出
|
static <T> List<T> |
importExcel(InputStream inputStream,
Integer titleRows,
Integer headerRows,
boolean needVerify,
Class<T> pojoClass)
excel 导入
|
static <T> List<T> |
importExcel(org.springframework.web.multipart.MultipartFile file,
Class<T> pojoClass)
excel 导入
|
static <T> List<T> |
importExcel(org.springframework.web.multipart.MultipartFile file,
Integer titleRows,
Integer headerRows,
boolean needVerify,
Class<T> pojoClass)
excel 导入
|
static <T> List<T> |
importExcel(org.springframework.web.multipart.MultipartFile file,
Integer titleRows,
Integer headerRows,
Class<T> pojoClass)
excel 导入
|
static <T> List<T> |
importExcel(String filePath,
Integer titleRows,
Integer headerRows,
Class<T> pojoClass)
excel 导入
|
public static void exportExcel(List<?> list, String title, String sheetName, Class<?> pojoClass, String fileName, boolean isCreateHeader, javax.servlet.http.HttpServletResponse response)
list - 数据title - 标题sheetName - sheet名称pojoClass - pojo类型fileName - 文件名称isCreateHeader - 是否创建表头response - public static void exportExcel(List<?> list, String title, String sheetName, Class<?> pojoClass, String fileName, javax.servlet.http.HttpServletResponse response)
list - 数据title - 标题sheetName - sheet名称pojoClass - pojo类型fileName - 文件名称response - public static void exportExcel(List<?> list, Class<?> pojoClass, String fileName, cn.afterturn.easypoi.excel.entity.ExportParams exportParams, javax.servlet.http.HttpServletResponse response)
list - 数据pojoClass - pojo类型fileName - 文件名称response - exportParams - 导出参数public static void exportExcel(List<Map<String,Object>> list, String fileName, javax.servlet.http.HttpServletResponse response)
list - 数据fileName - 文件名称response - public static <T> List<T> importExcel(String filePath, Integer titleRows, Integer headerRows, Class<T> pojoClass)
T - filePath - excel文件路径titleRows - 标题行headerRows - 表头行pojoClass - pojo类型public static <T> List<T> importExcel(org.springframework.web.multipart.MultipartFile file, Class<T> pojoClass)
T - file - excel文件pojoClass - pojo类型public static <T> List<T> importExcel(org.springframework.web.multipart.MultipartFile file, Integer titleRows, Integer headerRows, Class<T> pojoClass)
T - file - excel文件titleRows - 标题行headerRows - 表头行pojoClass - pojo类型public static <T> List<T> importExcel(org.springframework.web.multipart.MultipartFile file, Integer titleRows, Integer headerRows, boolean needVerify, Class<T> pojoClass)
T - file - 上传的文件titleRows - 标题行headerRows - 表头行needVerify - 是否检验excel内容pojoClass - pojo类型public static <T> List<T> importExcel(InputStream inputStream, Integer titleRows, Integer headerRows, boolean needVerify, Class<T> pojoClass)
T - inputStream - 文件输入流titleRows - 标题行headerRows - 表头行needVerify - 是否检验excel内容pojoClass - pojo类型Copyright © 2024. All rights reserved.