数据库连接修改,换国产数据库opengauss

This commit is contained in:
2026-09-24 15:50:17 +08:00
parent f8e6466d24
commit 4137d61561
2 changed files with 10 additions and 3 deletions
+7
View File
@@ -37,6 +37,13 @@
<version>8.1.2.192</version> <version>8.1.2.192</version>
</dependency> </dependency>
<!-- openGauss 数据库驱动包 -->
<dependency>
<groupId>org.opengauss</groupId>
<artifactId>opengauss-jdbc</artifactId>
<version>6.0.3-og</version>
</dependency>
<!-- 核心模块--> <!-- 核心模块-->
<dependency> <dependency>
<groupId>com.roomroot</groupId> <groupId>com.roomroot</groupId>
@@ -3,10 +3,10 @@ spring:
datasource: datasource:
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
# 达梦连接串:ip:端口,schema指定默认模式 # 达梦连接串:ip:端口,schema指定默认模式
url: jdbc:dm://10.1.1.17:5236?schema=JIAOWU&useUnicode=true&characterEncoding=utf-8 url: jdbc:opengauss://10.1.1.17:5433/jwgl?currentSchema=jwg1&batchMode=off&stringtype=unspecified
username: JIAOWU username: jwg1
password: Jiaowu123 password: Jiaowu123
driver-class-name: dm.jdbc.driver.DmDriver driver-class-name: org.opengauss.Driver
# Druid 基础参数 # Druid 基础参数
druid: druid: