一.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.
二.查看mysql 时区信息:
mysql 服务器使用的是系统的时区,我们可以在mysql 连接url 中添加 serverTimezone=GMT%2B8 (%2B8 是 ‘+’ ,由于url 中特殊字符需要转移,我们中国是东八区)。
jdbc:mysql://localhost:3306/db_test?useSSL=false&serverTimezone=GMT%2B8