解决后台返回的Timestamp日期数据里包含T

在response entity 的timestamp字段的get方法上添加注解JsonFormat,如:

  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Timestamp getUpdateTime() {
        return updateTime;
    }

猜你喜欢

转载自blog.csdn.net/qwdafedv/article/details/79939836