在配置文件(application.properties)中加入
#时间戳统一转换(输入string转换date,输出date转换string) spring.jackson.date-format=yyyy-MM-dd HH:mm:ss spring.jackson.time-zone=GMT+8
把日期类型从2020-09-01T15:25:59.000+00:00转化为2020-09-01 23:25:59

在配置文件(application.properties)中加入
#时间戳统一转换(输入string转换date,输出date转换string) spring.jackson.date-format=yyyy-MM-dd HH:mm:ss spring.jackson.time-zone=GMT+8
把日期类型从2020-09-01T15:25:59.000+00:00转化为2020-09-01 23:25:59