在使用基于vue的iview框架时,保存后再编辑,DatePicker组件显示的日期少了一天。
在springboot的配置文件里面加
spring:
jackson:
default-property-inclusion: non_null
date-format: "yyyy-MM-dd HH:mm:ss"
time-zone: "GMT+8"
解决格林时间和中部时间存在8小时时差造成的问题。
在使用基于vue的iview框架时,保存后再编辑,DatePicker组件显示的日期少了一天。
在springboot的配置文件里面加
spring:
jackson:
default-property-inclusion: non_null
date-format: "yyyy-MM-dd HH:mm:ss"
time-zone: "GMT+8"
解决格林时间和中部时间存在8小时时差造成的问题。