方法1:
mysql执行如下命令
set global time_zone='+8:00'
方法2:
在jdbc连接中加入时区,如
jdbc:mysql://localhost:3306/test?serverTimezone=GMT%2B8
方法1:
mysql执行如下命令
set global time_zone='+8:00'
方法2:
在jdbc连接中加入时区,如
jdbc:mysql://localhost:3306/test?serverTimezone=GMT%2B8
转载于:https://my.oschina.net/jingshishengxu/blog/3061054