配置文件(片段)
<property name="jdbcUrl">jdbc:mysql://localhost:3306/contact?useSSL=false;serverTimezone=UTC</property>
异常
java.sql.SQLNonTransientConnectionException: Cannot load connection class because of underlying exception: com.mysql.cj.core.exceptions.WrongArgumentException: Malformed database URL, failed to parse the connection string near '=UTC'.
修改后的配置文件(片段)
<property name="jdbcUrl">jdbc:mysql://localhost:3306/contact?useSSL=false&serverTimezone=UTC</property>