解决 java.sql.SQLException:The server time zone value xxx is unrecognized 问题
生活随笔
收集整理的這篇文章主要介紹了
解决 java.sql.SQLException:The server time zone value xxx is unrecognized 问题
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
報錯問題:Loading class com.mysql.jdbc.Driver'. This is deprecated. The new driver class iscom.mysql.cj.jdbc.Driver’. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
解決方案url配置后添加 “ ?serverTimezone=Asia/Shanghai ”串
或者添加 “ ?serverTimezone=UTC ” 串
serverTimezone=Asia/Shanghai 設置時區為東8區 (上海)
serverTimezone=UTC 設置時區為全國統一的時間
原文鏈接:https://blog.csdn.net/weixin_44505194/article/details/106674103
總結
以上是生活随笔為你收集整理的解决 java.sql.SQLException:The server time zone value xxx is unrecognized 问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 海量辅助无限多开 就在新浪页游助手
- 下一篇: Mac M1芯片安装 MySQL