MiniExcel icon indicating copy to clipboard operation
MiniExcel copied to clipboard

Support CustomFormat Attribute

Open shps951023 opened this issue 4 years ago • 0 comments

like easyexcel image

@Data
public class ConverterData {
    /**
     * 我想所有的 字符串起前面加上"自定义:"三个字
     */
    @ExcelProperty(value = "字符串标题", converter = CustomStringStringConverter.class)
    private String string;
    /**
     * 我想写到excel 用年月日的格式
     */
    @DateTimeFormat("yyyy年MM月dd日HH时mm分ss秒")
    @ExcelProperty("日期标题")
    private Date date;
    /**
     * 我想写到excel 用百分比表示
     */
    @NumberFormat("#.##%")
    @ExcelProperty(value = "数字标题")
    private Double doubleData;
}

shps951023 avatar Apr 13 '21 08:04 shps951023