解决 java.sql.SQLException:The server time zone value xxx is unrecognized 问题
生活随笔
收集整理的這篇文章主要介紹了
解决 java.sql.SQLException:The server time zone value xxx is unrecognized 问题
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
報(bào)錯(cuò)問題: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 設(shè)置時(shí)區(qū)為東8區(qū) (上海)
serverTimezone=UTC 設(shè)置時(shí)區(qū)為全國(guó)統(tǒng)一的時(shí)間
原文鏈接:https://blog.csdn.net/weixin_44505194/article/details/106674103
總結(jié)
以上是生活随笔為你收集整理的解决 java.sql.SQLException:The server time zone value xxx is unrecognized 问题的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 海量辅助无限多开 就在新浪页游助手
- 下一篇: Mac M1芯片安装 MySQL