maven配置
<!-- 达梦数据库 -->
<dependency>
<groupId>com.dameng</groupId>
<artifactId>DmJdbcDriver18</artifactId>
<version>8.1.1.193</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.2.0</version>
</dependency>
yml 配置文件
spring:
application:
name: demo-cdd
datasource:
driver-class-name: dm.jdbc.driver.DmDriver
url: jdbc:dm://192.168.xxx.xxx:5236/SYSDBA?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8
username: SYSDBA
password: cdd123456
open-in-view: false
properties:
hibernate:
dialect: org.hibernate.dialect.DmDialect
官方文档说明:
https://eco.dameng.com/community/training/5529e2b851334ad3513aa638917d873e