前端传的时间与数据库写入的时间不一致 一、配置springboot时区 spring.jackson.time-zone=GMT+8 二、修改数据库url的时区 serverTimezone=Asia/Shanghai