The server time zone value is unrecognized or represents more than one time zone. 这个问题的解决方法

我在用spring boot开发jpa的时候,发现了这个问题:

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

其中是有乱码。

解决的方法是,在连接mysql的url后面加上了一句话。

原来的url:jdbc:mysql://localhost:3306/stock

修改后的是:jdbc:mysql://localhost:3306/stock?serverTimezone=GMT

修改好,至少这个问题解决了。

用文章记录下,万一其它同学遇到类似问题,也可以用这个办法解决。

猜你喜欢

转载自blog.csdn.net/sxeric/article/details/113832302
今日推荐