1.驱动要使用对应的版本 2. 若出现时区错误 mysql执行代码或者加 ?serverTimezone=UTC
set global time_zone='+8:00';
更详细的请访问MyBatis Generator自动生成代码