MySQL采用8.0.26版本。
default.driver=com.mysql.cj.jdbc.Driver
default.url="jdbc:mysql://localhost/xxxx"
default.username=xxx
default.password="xxx"
"mysql" % "mysql-connector-java" % "8.0.26",
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQL8Dialect"/>
重新编译,运行成功!