在response entity 的timestamp字段的get方法上添加注解JsonFormat,如:
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
public Timestamp getUpdateTime() {
return updateTime;
}
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
public Timestamp getUpdateTime() {
return updateTime;
}