“The server time zone value ‘�й���׼ʱ��‘ is unrecognized or represents more than one time zone.“的解决方法

Cause of the error
The time zone of the database is inconsistent with the time zone of the system.

Solution
Add serverTimezone=GMT to the url of jdbc connection to solve the problem. Or use a lower version of the mysql driver, 5.1.28 will not have a time zone problem.

Insert picture description here
Change the url to the following figure:
Note : The & separator must be added to separate the encoding format from the previous one.
Insert picture description here

Guess you like

Origin blog.csdn.net/Hambur_/article/details/111660342