话不多说,直接上代码 没有配置前的情况 在字段上添加该注释 @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") 添加后