The server time zone value '?泄???????' is unrecognized or represents more t
hibernate配置文件如下
运行在服务器上,报错如下
解决方案:
在jdbc连接的url后面加上serverTimezone=GMT即可解决问题,因为是数据库和系统时区差异所造成的,
即
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/hitest?serverTimezone=GMT</property>