查询后端时间字段类型的时候,展示成 "createTime": "2020-09-02T11:25:56.007+0000"
需要格式化年月日时分秒格式
具体方法:application.properties中添加如下配置即可:
#-------------------- 时间统一格式化 -------------------- spring.jackson.date-format=yyyy-MM-dd HH:mm:ss spring.jackson.time-zone=GMT+8
查询后端时间字段类型的时候,展示成 "createTime": "2020-09-02T11:25:56.007+0000"
需要格式化年月日时分秒格式
具体方法:application.properties中添加如下配置即可:
#-------------------- 时间统一格式化 -------------------- spring.jackson.date-format=yyyy-MM-dd HH:mm:ss spring.jackson.time-zone=GMT+8