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.
出现此段报错信息,主要是由于数据库时区错误
连接数据库运行
set global time_zone = '+8:00'; ##修改mysql全局时区为北京时间,即我们所在的东8区
set time_zone = '+8:00'; ##修改当前会话时区
flush privileges; ##立即生效
永久解决方法,在连接路径后面追加 serverTimezone=UTC
jdbc:mysql://localhost/mysql_demo?serverTimezone=UTC