url: jdbc:mysql://localhost/paco_test
写成如上形式,会报如下错误:
org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set
只需在后面加上 ?serverTimezone=GMT,就可以正常启动了,即:
url: jdbc:mysql://localhost/paco_test?serverTimezone=GMT
或者写成 url: jdbc:mysql://localhost/paco_test?serverTimezone=Asia/Shanghai
代表上海时间