public class Configuration extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
Map<Class<?>,Object> |
applicationBeans
绑定的上下文,适用spring等容器环境
|
boolean |
autoMerge
是否自动合并
|
boolean |
computeAutoWidth |
String |
dateFormat
LocalDate类型数据全局格式化
|
String |
dateTimeFormat
Date、LocalDateTime类型数据全局格式化
|
String |
decimalFormat
数值类全局格式化
|
String |
defaultValue
当对应字段的值为null时所需要替换的默认值
|
boolean |
excludeParent
是否排除父类字段
|
boolean |
ignoreStaticFields
是否忽略静态字段
|
boolean |
includeAllField
是否导出所有字段,否,则只导出含
ExcelColumn注解字段 |
String |
localTimeFormat
LocalTime格式化
|
int |
rowHeight
内容行高度
|
String |
sheetName
The name of the sheet to be built
|
Set<String> |
style
全局样式
|
int |
titleRowHeight
标题行高度
|
String |
titleSeparator
多级标题所需的分离标志
|
boolean |
useFieldNameAsTitle
是否使用字段名称作为标题,当
ExcelColumn设定了title,则覆盖 |
WidthStrategy |
widthStrategy
宽度策略
|
WorkbookType |
workbookType
The type of workbook to be built
|
boolean |
wrapText
是否自动换行
|
| 构造器和说明 |
|---|
Configuration() |
public String sheetName
public WorkbookType workbookType
public WidthStrategy widthStrategy
public boolean excludeParent
public boolean includeAllField
ExcelColumn注解字段public String defaultValue
public boolean wrapText
public String titleSeparator
public boolean ignoreStaticFields
public int titleRowHeight
public int rowHeight
public boolean useFieldNameAsTitle
ExcelColumn设定了title,则覆盖public String dateFormat
public String dateTimeFormat
public String localTimeFormat
public String decimalFormat
public boolean computeAutoWidth
public boolean autoMerge
public void setWidthStrategy(WidthStrategy widthStrategy)
Copyright © 2023. All rights reserved.