LocalDateTime类型格式化,先转字符串再格式化(Date类型可以直接格式化)
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
private LocalDateTime createTime;
LocalDateTime类型格式化,先转字符串再格式化(Date类型可以直接格式化)
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
private LocalDateTime createTime;