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.
22 lines
540 B
22 lines
540 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 ComplexHeadData { |
|
@ExcelProperty({"主标题", "字符串标题"}) |
|
private String string; |
|
@ExcelProperty({"主标题", "日期标题"}) |
|
private Date date; |
|
@ExcelProperty({"主标题", "数字标题"}) |
|
private Double doubleData; |
|
}
|
|
|