数据库时间页面格式化显示

@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private String updater;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

猜你喜欢

转载自blog.csdn.net/yunfengfengfeng/article/details/108225530