SQLException: The server time zone value ‘�й���׼ʱ��‘ is unrecognized or represents more tha

参考自https://blog.****.net/weixin_38888926/article/details/89476144

idea报错:

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 specific time zone value if you want to utilize time zone support.
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129)

SQLException: The server time zone value ‘�й���׼ʱ��‘ is unrecognized or represents more tha
解决方法:url后添加 ?serverTimezone=GMT%2B8
SQLException: The server time zone value ‘�й���׼ʱ��‘ is unrecognized or represents more tha
SQLException: The server time zone value ‘�й���׼ʱ��‘ is unrecognized or represents more tha