@Retention(value=RUNTIME) @Target(value=FIELD) @Documented public @interface ExcelColumn
| 限定符和类型 | 可选元素和说明 |
|---|---|
boolean |
convertToString
是否强制转换成字符串
|
String |
dateFormatPattern
已过时。
|
String |
decimalFormat
已过时。
|
String |
defaultValue
为null时默认值
|
FileType |
fileType
文件类型
|
String |
format
格式化,时间、金额等
|
boolean |
formula
是否为公式
|
Class<?>[] |
groups
分组
|
int |
index
列索引,从零开始,不允许重复
|
LinkType |
linkType
链接
|
String |
mapping
简单映射,如"1:男,2:女"
|
int |
order
顺序,数值越大越靠后
|
Prompt |
prompt
提示语
|
String[] |
style
样式
|
String |
title
列标题
|
int |
width
宽度
|
Class<? extends CustomWriteConverter> |
writeConverter
写转化器
|
public abstract String title
public abstract Class<?>[] groups
public abstract String defaultValue
@Deprecated public abstract String decimalFormat
@Deprecated public abstract String dateFormatPattern
public abstract String format
public abstract String[] style
public abstract LinkType linkType
public abstract String mapping
public abstract Class<? extends CustomWriteConverter> writeConverter
public abstract FileType fileType
public abstract Prompt prompt
Copyright © 2023. All rights reserved.