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

报错:

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

上一篇:常见的50道mysql题目


下一篇:Laravel7 安装 laravel-admin 出现 Illuminate\Database\QueryException SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table name ''