在写数据库相关项目时,出现The server time zone value '?й???????' is unrecogni异常。

Posted cnshuji

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在写数据库相关项目时,出现The server time zone value '?й???????' is unrecogni异常。相关的知识,希望对你有一定的参考价值。

解决办法:  

spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/student?serverTimezone=UTC
spring.datasource.username=root
spring.datasource.password=a19770606
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true

以上是关于在写数据库相关项目时,出现The server time zone value '?й???????' is unrecogni异常。的主要内容,如果未能解决你的问题,请参考以下文章