Springboot2.x 响应时间格式为datetime

在application.properties文件中增加 

# 时间格式与时区
spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
spring.jackson.time-zone=GMT+8

 

posted @ 2021-08-02 22:02  夏秋初  阅读(323)  评论(0)    收藏  举报