@Target(value=METHOD) @Retention(value=RUNTIME) @Inherited public @interface ExcelExport
| Modifier and Type | Required Element and Description |
|---|---|
Class<?> |
dataType
数据类型
|
String |
fileNamePre
导出的Excel文件名前缀,格式如:{fileNamePre}_{yyyyMMddHHmmssSSS}.xlsx
|
| Modifier and Type | Optional Element and Description |
|---|---|
String |
listFieldName
列表属性在返回数据中的属性名。
|
public abstract String fileNamePre
public abstract Class<?> dataType
public abstract String listFieldName
说明:当方法返回的数据不是`List`,而是一个分页包装对象时,需要设置该参数。
也可以通过ExcelExportAspect的构造函数注入ExcelExportConfig配置参数,来全局配置`listFieldName`。
ExcelExportConfigCopyright © 2021–2022 EasyJ????. All rights reserved.