@JSONField(format = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8") protected Date uploadDate; // JSONField是fastjson.JSON.toJsonstring时候用的 // JsonFormat是返回到前端时候格式化用的
原文:https://www.cnblogs.com/luohaonan/p/12377004.html