运行jdbc时出现时区错误。 解决方法: 法1. jdbc:mysql://localhost:3306/数据库名?serverTimezone=UTC 法2. cmd -> 登陆mysql -> set gobal time_zone='+8:00';