springboot启动过程中出现You must configure either the server or JDBC driver (via the serverTimezone configu
Posted 囧囧x鑫
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了springboot启动过程中出现You must configure either the server or JDBC driver (via the serverTimezone configu相关的知识,希望对你有一定的参考价值。
报错:
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 configu的主要内容,如果未能解决你的问题,请参考以下文章