当前位置:   article > 正文

java.sql.SQLException: The server time zone value

java.sql.sqlexception: the server time zone value

报错: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.
解决方法:在连接数据库设置url中加上serverTimezone=UTC&
如:jdbc:mysql://localhost:3306/test?serverTimezone=UTC&amp

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/505772
推荐阅读
相关标签
  

闽ICP备14008679号