达梦数据库驱动

This commit is contained in:
shih
2026-04-11 17:58:47 +08:00
parent 40fd80192d
commit bc902e2da2
2 changed files with 10 additions and 3 deletions

View File

@@ -48,6 +48,11 @@
<groupId>com.lideeyunji</groupId>
<artifactId>lidee-module-biz</artifactId>
</dependency>
<!-- 达梦数据库驱动 -->
<dependency>
<groupId>com.dameng</groupId>
<artifactId>DmJdbcDriver18</artifactId>
</dependency>
</dependencies>
<build>

View File

@@ -2,8 +2,8 @@ spring:
application:
name: lideeyunji-server
profiles:
# active: local # 读取配置
active: prod # 读取配置
active: local # 读取配置
# active: prod # 读取配置
main:
allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。
@@ -61,11 +61,13 @@ flowable:
# MyBatis Plus 的配置项
mybatis-plus:
configuration:
# 达梦数据库配置
database-id: dm
map-underscore-to-camel-case: true # 虽然默认为 true ,但是还是显示去指定下。
jdbc-type-for-null: 'null'
global-config:
db-config:
id-type: NONE # “智能”模式,基于 IdTypeEnvironmentPostProcessor + 数据源的类型,自动适配成 AUTO、INPUT 模式。
id-type: ASSIGN_ID # “智能”模式,基于 IdTypeEnvironmentPostProcessor + 数据源的类型,自动适配成 AUTO、INPUT 模式。
logic-delete-value: 1 # 逻辑已删除值(默认为 1)
logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
banner: false # 关闭控制台的 Banner 打印