spring boot日期的格式化问题
正常的时间请求格式"2019-03-06 06:14:32",而在springboot项目中要求请求的时间格式为2019-03-06T06:14:32.005+0000,这时候在application.yml文件配置一下:
spring:
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
正常的时间请求格式"2019-03-06 06:14:32",而在springboot项目中要求请求的时间格式为2019-03-06T06:14:32.005+0000,这时候在application.yml文件配置一下:
spring:
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8