pom依赖
<dependency>
<groupId>dm.jdbc</groupId>
<artifactId>dm-jdbc</artifactId>
<version>7.0.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/resources/lib/dm-jdbc-7.0.0.jar</systemPath>
</dependency>
<dependency>
<groupId>dm.jdbc</groupId>
<artifactId>dm-jdbc</artifactId>
<version>6.0.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/resources/lib/Dm6JdbcDriver.jar</systemPath>
</dependency>
yml
datasource:
dynamic:
primary: db-DM7
strict: false
datasource:
db-DM7:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: dm.jdbc.driver.DmDriver
url: jdbc:dm://localhost:5236/SG_DATACENTER?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8
username: SYSDBA
password: SYSDBA
db-DM6:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: dm6.jdbc.driver.DmDriver
url: jdbc:dm6://192.168.233.132:12345/SYSTEM?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8
username: SYSDBA
password: SYSDBA