From d444973512c64db0f739a194514ae99cb8401879 Mon Sep 17 00:00:00 2001 From: whycxzp <glperry@163.com> Date: 星期一, 20 五月 2024 16:56:14 +0800 Subject: [PATCH] 数据库连接切换瀚高数据库 --- /dev/null | 0 src/main/resources/config/application-dev.yml | 13 +++++++------ pom.xml | 15 ++++----------- src/main/resources/config/application-prod.yml | 12 +++++++----- 4 files changed, 18 insertions(+), 22 deletions(-) diff --git a/pom.xml b/pom.xml index bd204f1..7363ff5 100644 --- a/pom.xml +++ b/pom.xml @@ -33,10 +33,11 @@ <artifactId>spring-boot-configuration-processor</artifactId> <optional>true</optional> </dependency> + <!--highgo鏁版嵁搴撹繛鎺ユ睜 瀹夊叏鐗圴4.5鐗堟湰鍙婁紒涓氱増V6鍏煎--> <dependency> - <groupId>mysql</groupId> - <artifactId>mysql-connector-java</artifactId> - <version>6.0.6</version> + <groupId>com.highgo</groupId> + <artifactId>HgdbJdbc</artifactId> + <version>6.2.3</version> </dependency> <dependency> <groupId>com.google.code.gson</groupId> @@ -99,14 +100,6 @@ <version>0.0.0</version> <scope>system</scope> <systemPath>${pom.basedir}/src/main/resources/lib/tomcat-embed-core-9.0.30.jar</systemPath> - </dependency> - <!--dm jdbc--> - <dependency> - <groupId>dm</groupId> - <artifactId>dm</artifactId> - <version>1.0</version> - <scope>system</scope> - <systemPath>${pom.basedir}/src/main/resources/lib/DmJdbcDriver18.jar</systemPath> </dependency> <dependency> <groupId>org.projectlombok</groupId> diff --git a/src/main/resources/config/application-dev.yml b/src/main/resources/config/application-dev.yml index 7b5e6a0..2315d2e 100644 --- a/src/main/resources/config/application-dev.yml +++ b/src/main/resources/config/application-dev.yml @@ -18,13 +18,14 @@ #鏁版嵁搴� spring: datasource: - type: com.alibaba.druid.pool.DruidDataSource - driver-class-name: dm.jdbc.driver.DmDriver +# type: com.alibaba.druid.pool.DruidDataSource + druid: + db-type: POSTGRE_SQL + driver-class-name: com.highgo.jdbc.Driver # url: jdbc:dm://localhost:5236/SYSDBA?rewriteBatchedStatements=true&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8 - url: jdbc:dm://192.168.10.82:5236/SYSDBA?rewriteBatchedStatements=true&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8 - username: SYSDBA -# password: lmx8688139 - password: xzp8688139 + url: jdbc:highgo://localhost:5866/test?rewriteBatchedStatements=true&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8 + username: highgo + password: Lmx8688139* maxIdel: 60 initialPoolSize: 2 minPoolSize: 5 diff --git a/src/main/resources/config/application-prod.yml b/src/main/resources/config/application-prod.yml index 6020630..6bf54e8 100644 --- a/src/main/resources/config/application-prod.yml +++ b/src/main/resources/config/application-prod.yml @@ -18,11 +18,13 @@ #鏁版嵁搴� spring: datasource: - type: com.alibaba.druid.pool.DruidDataSource - driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:dm://localhost:5236/SYSDBA?rewriteBatchedStatements=true&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8 - username: SYSDBA - password: lmx8688139 +# type: com.alibaba.druid.pool.DruidDataSource + druid: + db-type: POSTGRE_SQL + driver-class-name: com.highgo.jdbc.Driver + url: jdbc:highgo://192.168.10.82:5866/db_user?rewriteBatchedStatements=true&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8 + username: highgo + password: Lmx8688139* maxIdel: 60 initialPoolSize: 2 minPoolSize: 5 diff --git a/src/main/resources/lib/DmJdbcDriver18.jar b/src/main/resources/lib/DmJdbcDriver18.jar deleted file mode 100644 index 2a0a920..0000000 --- a/src/main/resources/lib/DmJdbcDriver18.jar +++ /dev/null Binary files differ -- Gitblit v1.9.1