update 更新配置文件 修改数据源相关配置 ;

This commit is contained in:
zlyx 2022-11-07 17:24:36 +08:00
parent 4a111b009e
commit 3b8aa212f7
2 changed files with 16 additions and 4 deletions

View File

@ -59,21 +59,27 @@ spring:
url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
username:
password:
type: ${spring.datasource.type}
# oracle:
# driverClassName: oracle.jdbc.OracleDriver
# url: jdbc:oracle:thin:@//localhost:1521/XE
# username: ROOT
# password: root
# type: ${spring.datasource.type}
# hikari:
# connectionTestQuery: SELECT 1 FROM DUAL
# postgres:
# driverClassName: org.postgresql.Driver
# url: jdbc:postgresql://localhost:5432/postgres?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
# username: root
# password: root
# type: ${spring.datasource.type}
# sqlserver:
# driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
# url: jdbc:sqlserver://localhost:1433;DatabaseName=tempdb;SelectMethod=cursor;encrypt=false;rewriteBatchedStatements=true
# username: SA
# password: root
# type: ${spring.datasource.type}
hikari:
# 配置获取连接等待超时的时间
connection-timeout: 60000
@ -86,9 +92,9 @@ spring:
# 最小连接池数量
min-idle: 10
# 连接测试query配置检测连接是否有效
connection-test-query: SELECT 1
connectionTestQuery: SELECT 1
# 此属性控制从池返回的连接的默认自动提交行为默认值true
is-auto-commit: true
isAutoCommit: true
--- # redis 单机配置(单机与集群只能开启一个另一个需要注释掉)
spring:

View File

@ -62,21 +62,27 @@ spring:
url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
username:
password:
type: ${spring.datasource.type}
# oracle:
# driverClassName: oracle.jdbc.OracleDriver
# url: jdbc:oracle:thin:@//localhost:1521/XE
# username: ROOT
# password: root
# type: ${spring.datasource.type}
# hikari:
# connectionTestQuery: SELECT 1 FROM DUAL
# postgres:
# driverClassName: org.postgresql.Driver
# url: jdbc:postgresql://localhost:5432/postgres?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
# username: root
# password: root
# type: ${spring.datasource.type}
# sqlserver:
# driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
# url: jdbc:sqlserver://localhost:1433;DatabaseName=tempdb;SelectMethod=cursor;encrypt=false;rewriteBatchedStatements=true
# username: SA
# password: root
# type: ${spring.datasource.type}
hikari:
# 配置获取连接等待超时的时间
connection-timeout: 60000
@ -89,9 +95,9 @@ spring:
# 最小连接池数量
min-idle: 10
# 连接测试query配置检测连接是否有效
connection-test-query: SELECT 1
connectionTestQuery: SELECT 1
# 此属性控制从池返回的连接的默认自动提交行为默认值true
is-auto-commit: true
isAutoCommit: true
--- # redis 单机配置(单机与集群只能开启一个另一个需要注释掉)
spring: