问题描述:
一般timestamp类型的字段读取出来是这样的:2020-11-02T10:59:08.000+08:00,现在需要返回2020-10-30 18:24:26这种类型
解决方法:
在实体类里面字段上方添加注释@JsonFormat(pattern = “yyyy-MM-dd HH:mm:ss”)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建时间")
@TableField(value="created