批注接口 ResponseExcel
Excel下载
`@ResponseExcel 注解`
-
可选元素概要
可选元素修饰符和类型可选元素说明Class<? extends com.alibaba.excel.converters.Converter>[]转换器String[]排除字段boolean填充模式Class<? extends HeadGenerator> 自定义Excel头生成器booleanexcel 头信息国际化String[]+ 包含字段boolean内存操作文件名称文件密码Sheet[]sheet 名称,支持多个com.alibaba.excel.support.ExcelTypeEnum文件类型 (xlsx xls)booleanexcel 模板Class<? extends com.alibaba.excel.write.handler.WriteHandler>[]拦截器,自定义样式等处理器
-
元素详细资料
-
name
String name文件名称- 返回:
- string
- 默认值:
""
-
suffix
com.alibaba.excel.support.ExcelTypeEnum suffix文件类型 (xlsx xls)- 返回:
- string
- 默认值:
XLSX
-
password
String password文件密码- 返回:
- password
- 默认值:
""
-
sheets
Sheet[] sheetssheet 名称,支持多个- 返回:
- String[]
- 默认值:
{@com.sie.mbm.mom.framework.excel.annotation.Sheet(sheetName="sheet1")}
-
inMemory
boolean inMemory内存操作- 返回:
- 默认值:
false
-
template
String templateexcel 模板- 返回:
- String
- 默认值:
""
-
include
String[] include+ 包含字段- 返回:
- String[]
- 默认值:
{}
-
exclude
String[] exclude排除字段- 返回:
- String[]
- 默认值:
{}
-
writeHandler
Class<? extends com.alibaba.excel.write.handler.WriteHandler>[] writeHandler拦截器,自定义样式等处理器- 返回:
- WriteHandler[]
- 默认值:
{}
-
converter
Class<? extends com.alibaba.excel.converters.Converter>[] converter转换器- 返回:
- Converter[]
- 默认值:
{}
-
headGenerator
Class<? extends HeadGenerator> headGenerator自定义Excel头生成器- 返回:
- HeadGenerator
- 默认值:
com.sie.mbm.mom.framework.excel.head.HeadGenerator.class
-
i18nHeader
boolean i18nHeaderexcel 头信息国际化- 返回:
- boolean
- 默认值:
false
-
fill
boolean fill填充模式- 返回:
- 默认值:
false
-
suffixDateTime
boolean suffixDateTime- 默认值:
false
-
code
String code- 默认值:
""
-