spring.jackson.date-format=yyyy-MM-dd # 返回时间的格式
spring.jackson.time-zone=GMT+8 # 时区
spring.jackson.serialization.write-dates-as-timestamps=false # 是否返回时间戳配置
//@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern="yyyy年MM月dd日 HH时mm分ss秒",timezone = "UTC")
private Date registerDate;
原文:https://www.cnblogs.com/tanggoblin/p/14841927.html