连接MySQL8.0.16版本时报错:
Caused by: java.sql.SQLException: 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 property)
to use a more specifc time zone value if you want to utilize time zone support.
以上错误日志提示 时区配置错误
解决:手动在url后加上关于时区的配置
正确的url为:
jdbc.url=jdbc:mysql://localhost:3306/crm?useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&characterEncoding=UTF-8
serverTimezone=GMT%2B8
指定为中国时区