在使用JDBC连接数据库时,出现的异常。
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.
Mysql新版本的驱动需要在数据库地址中加入时区
模板如下:“jdbc:mysql://主机名:端口/自己创建的数据库名?serverTimezone=UTC”