达梦数据库配置hibernate错误,方言包有问题

最近在学习公司的一个项目,代码完整,build不报错,一开始这个项目是链接mysql数据库,后来公司把数据库迁移到达梦数据库了,所以我修改了配置到达梦数据库上,现在报错。
我修改的地方如下:
(1)url各种配置
spring.datasource.driver-class-name = dm.jdbc.driver.DmDriver
spring.datasource.url=jdbc:dm://localhost:5237/YIJIANG?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8
spring.datasource.username=YIJIANG
spring.datasource.password=Yijiang@2021
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true

img


(2)application.yml配置
config:
jpa:
hibernate:
dialect: org.hibernate.dialect.DmDialect
ddl-auto: update
show-sql: true

img

(3)导入jar包

img

img

这两个包不知道弄得对不对,反正我是导入了,然后在build.gradle里配置:
dependencies {
compile files('src/Dm7JdbcDriver17.jar')
compile files('src/DmDialect-for-hibernate5.0.jar')
}

现在报错内容如下:
org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
Process 'command 'C:/Program Files/Java/jdk1.8.0_131/bin/java.exe'' finished with non-zero exit value 1

问题出在哪里?

Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
访问dialectresolutioninfo不能为空时,方言没有设置的意思。