The server time zone value is unrecognized or represents more than one time zone. The solution to this problem

When I was developing jpa with spring boot, I found this problem:

The server time zone value '???ú±ê×??±??' is unrecognized or represents more than one time zone.

Among them is garbled.

The solution is to add a sentence after the url that connects to mysql.

Original url: jdbc:mysql://localhost:3306/stock

The modified one is: jdbc:mysql://localhost:3306/stock?serverTimezone=GMT

Modified, at least this problem is solved.

Use the article to record, if other students encounter similar problems, you can also use this method to solve them.

 

Guess you like

Origin blog.csdn.net/sxeric/article/details/113832302