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

相关文章
相关标签/搜索