1、需要手动增加依赖 DmJdbcDriver18.jar
Maven - m
mvn install:install-file -Dfile=D:\dmdbms\DmJdbcDriver18.jar -DgroupId=com.dmdbms -DartifactId=dmdbms -Dversion=8.1.1.193 -Dpackaging=jar
2、主pom.xml 文件中增加如下代码:
<!--添加达梦数据库驱动安装包-->
<dependency>
<groupId>com.dmdbms</groupId>
<artifactId>dmdbms</artifactId>
<version>8.1.1.193</version>
</dependency>
3、数据源配置 application.yml
spring:
quartz:
jdbc:
initialize-schema: never
datasource:
type: com.alibaba.druid.pool.DruidDataSource
druid:
driver-class-name: dm.jdbc.driver.DmDriver
username: dmUser
password: dmPw
url: jdbc:dm://111.1.1.1:1111
标签:jdbc,DmJdbcDriver18,jar,dmdbms,com,连接,达梦
From: https://www.cnblogs.com/linhan8888/p/18215685