SQLException: The server time zone value ‘?й???????’ is unrecognized

mysql-connector-java这个jar包是最新的时候
【SQLException: The server time zone value ‘?й???????’ is unrecognized】在配置datasource.url时不能简单的这样配:
spring.datasource.url=jdbc:mysql://localhost:3306/chat
需要加上一些必要的后缀信息(改成下面的配置就可以了): 主要是时区相关的配置

spring.datasource.url=jdbc:mysql://localhost:3306/chat?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC

    推荐阅读