Eclipse报错com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value

这是Jdbc连接问题,在连接字符串 url 后加上 serverTimezone=UTC,db.properties如图所示,如果写在函数体内依葫芦画瓢即可。

亲测可用。

祝君好运。

猜你喜欢

转载自blog.csdn.net/CheneyKKE/article/details/82725281