在实体类中 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8") private Date createTime; 转载于:https://www.cnblogs.com/yang101/p/11430509.html