From 8c85bd0ceef4b1c7ba6c6b5a109d15c74d9e0176 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期三, 01 四月 2026 14:14:06 +0800
Subject: [PATCH] 兼容postgresql
---
start/src/main/resources/application-dev.yml | 9 ++++-----
start/src/main/resources/application.yml | 2 +-
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/start/src/main/resources/application-dev.yml b/start/src/main/resources/application-dev.yml
index e3f1c76..71afe94 100644
--- a/start/src/main/resources/application-dev.yml
+++ b/start/src/main/resources/application-dev.yml
@@ -40,14 +40,13 @@
max-wait: -1ms
datasource:
type: com.alibaba.druid.pool.DruidDataSource
- driverClassName: com.mysql.cj.jdbc.Driver
+ driverClassName: org.postgresql.Driver
druid:
# 涓诲簱鏁版嵁婧�
master:
-# url: jdbc:mysql://42.193.1.25:3306/project_management?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true
- url: jdbc:mysql://42.193.1.25:3306/project_management_test?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowMultiQueries=true
- username: root
- password: 321$YcYl@1970!
+ url: jdbc:postgresql://172.27.30.2:5432/project_management
+ username: project
+ password: Mysql@my
# 浠庡簱鏁版嵁婧�
slave:
# 浠庢暟鎹簮寮�鍏�/榛樿鍏抽棴
diff --git a/start/src/main/resources/application.yml b/start/src/main/resources/application.yml
index 031f912..b8b0188 100644
--- a/start/src/main/resources/application.yml
+++ b/start/src/main/resources/application.yml
@@ -90,7 +90,7 @@
# PageHelper鍒嗛〉鎻掍欢
pagehelper:
- helperDialect: mysql
+ helperDialect: postgresql
supportMethodsArguments: true
params: count=countSql
--
Gitblit v1.8.0