转换格式啊
先创建下边这个class
public class Date2LongSerializer extends JsonSerializer<Date>
,然后
/** 创建时间. */
@JsonSerialize(using = Date2LongSerializer.class)
private Date createTime;
/** 更新时间. */
@JsonSerialize(using = Date2LongSerializer.class)
private Date updateTime;