需要在jdbc的url連接配接中添加
serverTimezone=Asia/Shanghai
。
例如:
jdbc:mysql://localhost:3306/db1?serverTimezone=Asia/Shanghai
jdbc:mysql://localhost:3306/db1?serverTimezone=GMT
持續更新,如果錯誤,歡迎大家指出,共同學習...
需要在jdbc的url連接配接中添加
serverTimezone=Asia/Shanghai
。
例如:
jdbc:mysql://localhost:3306/db1?serverTimezone=Asia/Shanghai
jdbc:mysql://localhost:3306/db1?serverTimezone=GMT
持續更新,如果錯誤,歡迎大家指出,共同學習...