1.添加
&serverTimezone=GMT%2B8
jdbc.url=jdbc:mysql://127.0.0.1:3306/platform-shop?useUnicode=true&characterEncoding=utf-8&socketTimeout=60000&serverTimezone=GMT%2B8
# 登录mysql的root用户
show variables like '%time_zone%';
set time_zone='+8:00';
1.添加
&serverTimezone=GMT%2B8
jdbc.url=jdbc:mysql://127.0.0.1:3306/platform-shop?useUnicode=true&characterEncoding=utf-8&socketTimeout=60000&serverTimezone=GMT%2B8
# 登录mysql的root用户
show variables like '%time_zone%';
set time_zone='+8:00';