LocalDateTime格式的字段返回值与自己想要的格式不一致 可在yml文件做统一配置: spring: mvc: date-format: yyyy-MM-dd HH:mm:ss jackson: date-format: yyyy-MM-dd HH:mm:ss time-zone: GMT+8