最近在使用JDBC连接MySql时,报如下错误
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.
这是由于时钟的问题,解决方法很简单,只需要在配置文件url后加上?serverTimezone=UTC即可