forked from fanruan/easyexcel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
541 B
25 lines
541 B
package com.alibaba.easyexcel.test.demo.write; |
|
|
|
import java.util.Date; |
|
|
|
import com.alibaba.excel.annotation.ExcelProperty; |
|
|
|
import lombok.Data; |
|
|
|
/** |
|
* 基础数据类 |
|
* |
|
* @author Jiaju Zhuang |
|
**/ |
|
@Data |
|
public class IndexData { |
|
@ExcelProperty(value = "字符串标题", index = 0) |
|
private String string; |
|
@ExcelProperty(value = "日期标题", index = 1) |
|
private Date date; |
|
/** |
|
* 这里设置3 会导致第二列空的 |
|
*/ |
|
@ExcelProperty(value = "数字标题", index = 3) |
|
private Double doubleData; |
|
}
|
|
|