记一次本地测试链接澳洲数据库启动异常
下面是数据链接配置
datasource:
url: jdbc:mysql://xxx:3306/xxxx?useUnicode=true&characterEncoding=utf8&useSSL=false?
username: xxxx
password: xxxx
type: com.zaxxer.hikari.HikariDataSource
启动抛出异常:
The server time zone value 'AEDT' 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后面加上&serverTimezone=UTC,即默认0时区。即可启动