时区错误:
解决方法:
在mybatis.xml后加 “?serverTimezone=GMT%2B8” (设置时区)
<property name="url" value="jdbc:mysql://localhost:3306/test?serverTimezone=GMT%2B8" />
mysql解决
set global time_zone='+8:00';
参考:https://blog.youkuaiyun.com/zwj1030711290/article/details/81190635