mysql jdbc timezone

MySql的时区(serverTimezone)引发的血案

https://www.cnblogs.com/zhuitian/p/12436300.html

java 解决date 类型的时间插入mysql中差8小时

https://www.shangmayuan.com/a/d0aa20937e0f491091077ea1.html

 

spring.datasource.url=jdbc:mysql://localhost:3306/xxxdb?characterEncoding=utf8&useSSL=false&serverTimezone=CTT
posted @ 2022-02-14 09:50  tonggc1668  阅读(115)  评论(0编辑  收藏  举报