1.驱动类名已经变更为
com.mysql.cj.jdbc.Driver
2. jdbc链接URL需要加入参数
serverTimezone=Asia/Shanghai
否则可能会出现
com.mysql.cj.core.exceptions.InvalidConnectionAttributeException: 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.
的错误