@Target(value={FIELD,METHOD}) @Retention(value=RUNTIME) @Inherited @Documented public @interface ExcelColumn
| 限定符和类型 | 可选元素和说明 |
|---|---|
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
|
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 © 2020. All rights reserved.