Browse Source
- 在 application.yaml 中激活 dm 配置文件 - 新增 application-dm.yaml 配置文件,包含达梦数据库连接配置 - 在 pom.xml 中添加达梦数据库驱动依赖 - 在 pom.xml 中添加达梦数据库配置文件的 profile 配置 - 更新数据源配置以支持达梦数据库连接 - 配置达梦数据库的主从数据源连接信息pull/57/head
4 changed files with 40 additions and 3 deletions
@ -0,0 +1,19 @@ |
|||
--- #################### 数据库相关配置(达梦) #################### |
|||
|
|||
spring: |
|||
datasource: |
|||
dynamic: |
|||
druid: |
|||
connection-init-sqls: ["SET SCHEMA ALERT"] |
|||
datasource: |
|||
master: |
|||
url: jdbc:dm://120.26.116.243:5236?schema=ALERT |
|||
username: SYSDBA |
|||
password: powerSIS123 |
|||
driver-class-name: dm.jdbc.driver.DmDriver |
|||
# 与 master 保持一致,避免 local profile 的 MySQL 从库配置残留 |
|||
slave: |
|||
url: jdbc:dm://120.26.116.243:5236?schema=ALERT |
|||
username: SYSDBA |
|||
password: powerSIS123 |
|||
driver-class-name: dm.jdbc.driver.DmDriver |
|||
Loading…
Reference in new issue