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

 

相关文章

连接数据库的方式:第一种方式:ODBC:开放数据库连接是微软...
JDBCRequest 使用VariableNamesmysql:数据库连接池对象var...
 1.JDBCDBC(JavaDataBaseConnectivity):Java数据库连接技术...
1.需要jar包的支持:java.sqljavax.sqlmysql-conneter-java....
1.简介Activiti是一个业务流程管理(BPM)框架,它是覆盖了业务...
1.JDBC体系系统一组规范:接口JDBC接口(API)包括两个层次:...