springboot整合持久層技術(mysql驅動問題)

java.sql.SQLException: The server time zone value '�й���׼ʱ��' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.java

默認使用的是 8.0.16 版本的鏈接器;(最新版)mysql

mysql數據庫版本5.7.20。mysql驅動後期使用的時候,須要添加 serverTimezone 時區,而後就能夠了sql

另外一種解決辦法爲:數據庫

下降mysql鏈接器的版本url

添加mysql版本。3d

還須要設置 driver-class-name ,在url部分須要添加 useSSL=false。不適用SSL鏈接(高版本的須要設置).server

相關文章
相關標籤/搜索