环境:vue3 + springboot + mybatis + mysql
场景:后端返回的时间与前端接收到的时间,小时不一致,
时间格式是古巴标准时间:"CST"
解决:在 Entity 中时间字段上增加注解:
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
环境:vue3 + springboot + mybatis + mysql
场景:后端返回的时间与前端接收到的时间,小时不一致,
时间格式是古巴标准时间:"CST"
解决:在 Entity 中时间字段上增加注解: