12 2023 档案
vue3 + java 查询数据前后端时间不一致如何解决?
摘要:环境:vue3 + springboot + mybatis + mysql 场景:后端返回的时间与前端接收到的时间,小时不一致, 时间格式是古巴标准时间:"CST" 解决:在 Bean 中时间字段上增加注解: @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",
阅读全文