注释类型 ExportExcel
-
@Documented @Target(METHOD) @Retention(RUNTIME) public @interface ExportExcel
`@ResponseExcel 注解`- 作者:
- yusiwen
-
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 Class<? extends com.alibaba.excel.converters.Converter>[]converter转换器String[]exclude排除字段booleanfill填充模式Class<? extends HeadGenerator>headGenerator自定义Excel头生成器booleani18nHeaderexcel 头信息国际化String[]include+ 包含字段booleaninMemory内存操作Stringname文件名称Stringpassword文件密码Sheet[]sheetssheet 名称,支持多个com.alibaba.excel.support.ExcelTypeEnumsuffix文件类型 (xlsx xls)Stringtemplateexcel 模板Class<? extends com.alibaba.excel.write.handler.WriteHandler>[]writeHandler拦截器,自定义样式等处理器
-
-
-
元素详细资料
-
name
String name
文件名称- 返回:
- string
- 默认值:
- ""
-
-
-
password
String password
文件密码- 返回:
- password
- 默认值:
- ""
-
-
-
sheets
Sheet[] sheets
sheet 名称,支持多个- 返回:
- String[]
- 默认值:
- {@cn.yusiwen.excel.annotation.Sheet(sheetName="sheet1")}
-
-
-
template
String template
excel 模板- 返回:
- 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
- 默认值:
- cn.yusiwen.excel.head.HeadGenerator.class
-
-