您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

springboot启动过程中出现You must configure either the server or JDBC driver (via the serverTimezone configuration

bubuko 2022/1/25 19:49:22 java 字数 951 阅读 1048 来源 http://www.bubuko.com/infolist-5-1.html

报错: The server time zone value '?й???????' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver ...

报错:

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

 

解决:

url: jdbc:mysql://localhost:3306/test

后面添加:

?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC

url: jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC

OK

 

springboot启动过程中出现You must configure either the server or JDBC driver (via the serverTimezone configuration

原文:https://www.cnblogs.com/zxh06820/p/12905482.html


如果您也喜欢它,动动您的小指点个赞吧

除非注明,文章均由 laddyq.com 整理发布,欢迎转载。

转载请注明:
链接:http://laddyq.com
来源:laddyq.com
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。


联系我
置顶