达梦连接
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:
# springboot升级到2.6+,配置该项解决**Failed** to instantiate [org.springframework.boot.autoconfigure.quartz.QuartzDataSourceScriptDatabaseInitializer]: Factory method 'quartzDataSourceScriptDatabaseInitializer' threw exception; nested exception is java.lang.IllegalStateException: Unable to detect database type
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
4.IDEA 文件 - 清除缓存 重启
择善人而交,择善书而读,择善言而听,择善行而从。