测试的时候报错:
Caused by: 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 .....
将
<property name="connection.url">jdbc:mysql://localhost:3306/hibernatetest</property>
修改为
<property name="connection.url">jdbc:mysql://localhost:3306/hibernatetest?serverTimezone=UTC</property>