在IntelliJ IDEA中使用Hibernate遇到的一些问题

测试的时候报错:

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>

猜你喜欢

转载自blog.csdn.net/blackei/article/details/88802027