trhsy

mysql 8

jdbc:mysql://127.0.0.1:3306/mydb?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&autoReconnect=true&useSSL=false&serverTimezone=GMT%2B0

serverTimezone=GMT%2B8
设置的东八区 北京时间
结果服务器在德国
代码中涉及到时间戳转换对比,怎么算都差8个小时。
所以连接mysql 数据库的时候一定要修改时区。

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-01-07
  • 2021-12-25
  • 2022-12-23
  • 2021-07-13
  • 2021-12-10
  • 2022-02-04
  • 2022-12-23
猜你喜欢
  • 2021-09-02
  • 2022-01-01
  • 2021-05-19
  • 2021-04-11
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案