配置文件配置mysql数据源,项目启动报错如下
[ERROR] [2023-05-05 14:02:21] [Druid-ConnectionPool-Create-1197894457] ==> create connection SQLException, url: jdbc:mysql://localhost:3306/zzdemo-online? useUnicode=true&characterEncoding=utf8&useSSL=false, errorCode 0, state 01S00
java.sql.SQLException: 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 specific time zone value if you want to utilize time zone support.
已解决
在url中?后面添加serverTimezone=UTC&