@[TOC](SpringBoot连接MySQL8.0+报错:The server time zone value ’ й ʱ ’ 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.)
这是报MySQL时区问题,有两种解决办法:
1.在配置文件里的MySQL地址后加上**&serverTimezone=UTC**,UTC是世界标准时间。
2.在本地安装的MySQL文件夹的my.ini中加入default-time-zone=’+08:00’