@Target(value={FIELD,METHOD}) @Retention(value=RUNTIME) @Inherited @Documented public @interface ExcelColumn
| 限定符和类型 | 可选元素和说明 |
|---|---|
int |
colIndex
Specify the column index(zero base), Range from
0 to 16383 include 16383
The column set by colIndex is an absolute position. |
HeaderComment |
comment
Specify a comment in header column
If this annotation appears with
@HeaderComment at
the same time, the independent @HeaderComment annotation
takes precedence
NOTE: This attribute only affects the header line |
String |
format
Specify the cell format.
|
boolean |
share
Share body string
|
String |
value
Title of column
|
boolean |
wrapText
Wrap text in a cell
Microsoft Excel can wrap text so it appears on multiple lines in a cell.
|
public abstract String value
public abstract HeaderComment comment
If this annotation appears with @HeaderComment at
the same time, the independent @HeaderComment annotation
takes precedence
NOTE: This attribute only affects the header line
HeaderCommentpublic abstract String format
It only supports the format specified by Office excel, please refer
to NumFmt.
If you are not sure whether the format is correct, please open
Office excel> Format cell> Custom to debug the
custom format here.
Note: It only used on Number or Date(include Timestamp, Time and java.time.*) field.
Copyright © 2022. All rights reserved.