update 优化 适配框架多数据库支持 完成 oracle postgres 数据库适配

(放弃 sqlserver 适配 原因: 基础中间件均不支持)
This commit is contained in:
疯狂的狮子li
2022-12-27 16:17:16 +08:00
parent db5d448623
commit 77e899981a
10 changed files with 136 additions and 69 deletions

View File

@@ -41,10 +41,25 @@ spring:
datasource:
# 主库数据源
master:
type: ${spring.datasource.type}
driver-class-name: com.mysql.cj.jdbc.Driver
url: ${datasource.system-master.url}
username: ${datasource.system-master.username}
password: ${datasource.system-master.password}
# oracle:
# type: ${spring.datasource.type}
# driverClassName: oracle.jdbc.OracleDriver
# url: ${datasource.system-oracle.url}
# username: ${datasource.system-oracle.username}
# password: ${datasource.system-oracle.password}
# hikari:
# connectionTestQuery: SELECT 1 FROM DUAL
# postgres:
# type: ${spring.datasource.type}
# driverClassName: org.postgresql.Driver
# url: ${datasource.system-postgres.url}
# username: ${datasource.system-postgres.url}
# password: ${datasource.system-postgres.url}
--- # elasticsearch 功能配置
# 文档地址: https://www.easy-es.cn/