You must configure either the server or JDBC driver (via the serverTimezone configuration property)

£神魔★判官ぃ 2022-05-12 04:16 260阅读 0赞

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.

今天做项目启动的时候出现了这个错误。

70

首先说明一下这是什么原因呢,这是因为引入的最新的mysql 连接驱动包引起的。

70 1

解决方案:

  • 在配置文件里面修改一下,如下图
  • 70 2

发表评论

表情:
评论列表 (有 0 条评论,260人围观)

还没有评论,来说两句吧...

相关阅读