refactor: 数据库修改为达梦

This commit is contained in:
Kelvin 2024-10-30 15:36:16 +08:00
parent cbb0f2e6ff
commit 954b89c423
4 changed files with 19 additions and 4 deletions

Binary file not shown.

Binary file not shown.

View File

@ -67,6 +67,21 @@
<artifactId>ktg-mes</artifactId> <artifactId>ktg-mes</artifactId>
</dependency> </dependency>
<!-- 达梦数据库驱动依赖 -->
<dependency>
<groupId>com.dm</groupId>
<artifactId>DmJdbcDriver</artifactId>
<version>1.8</version>
<scope>system</scope>
<systemPath>${basedir}/lib/DmJdbcDriver18.jar</systemPath>
</dependency>
<dependency>
<groupId>com.dm.dialect</groupId>
<artifactId>hibernate5</artifactId>
<version>5.4</version>
<scope>system</scope>
<systemPath>${basedir}/lib/DmDialect-for-hibernate5.4.jar</systemPath>
</dependency>
</dependencies> </dependencies>
<build> <build>

View File

@ -2,13 +2,13 @@
spring: spring:
datasource: datasource:
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.cj.jdbc.Driver driverClassName: dm.jdbc.driver.DmDriver
druid: druid:
# 主库数据源 # 主库数据源
master: master:
url: jdbc:mysql://192.168.100.106:3306/j2eedb?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 url: jdbc:dm://localhost:5236/CS_HF_WMS?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root username: SYSDBA
password: 123456 password: SYSDBA
# 从库数据源 # 从库数据源
slave: slave:
# 从数据源开关/默认关闭 # 从数据源开关/默认关闭