配置
<!-- dm -->
<dependency>
<groupId>com.dm</groupId>
<artifactId>DmJdbcDriver</artifactId>
<version>1.8</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/lib/DmJdbcDriver18.jar</systemPath>
</dependency>
oracle兼容模式
jdbc:
driver: dm.jdbc.driver.DmDriver
url: jdbc:dm://10.10.10.10:5236?schema=budwk_v8&compatibleMode=oracle
username: budwk
password: '@#budwk'
validationQuery: select 1 from dual
maxActive: 10
testWhileIdle: true
connectionProperties: druid.stat.slowSqlMillis=2000
defaultAutoCommit: true
- 注意
validationQuery: select 1 from dual
mysql兼容模式
jdbc:
driver: dm.jdbc.driver.DmDriver
url: jdbc:dm://10.10.10.10:5236?schema=budwk_v8&databaseProductName=dm mysql&compatibleMode=mysql
username: budwk
password: '@#budwk'
validationQuery: select 1
maxActive: 10
testWhileIdle: true
connectionProperties: druid.stat.slowSqlMillis=2000
defaultAutoCommit: true
- 注意
databaseProductName=dm mysq
中间有空格