Browse Source

数据库配置

platform-api
4670101279 3 years ago
parent
commit
9b63ba3841
  1. 16
      ruoyi-admin/src/main/resources/application-druid.yml

16
ruoyi-admin/src/main/resources/application-druid.yml

@ -6,16 +6,16 @@ spring: @@ -6,16 +6,16 @@ spring:
druid:
# 主库数据源
master:
url: jdbc:mysql://81.69.34.200:33061/zxzb?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true&allowPublicKeyRetrieval=true
username: zxzb
password: zxzB_2022
url: jdbc:mysql://121.40.203.197:3306/znsc?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true&allowPublicKeyRetrieval=true
username: znsc
password: znSC_1q2w#E$R
# 从库数据源
slave:
# 从数据源开关/默认关闭
enabled: false
url:
username:
password:
url:
username:
password:
# 初始连接数
initialSize: 5
# 最小连接池数量
@ -35,7 +35,7 @@ spring: @@ -35,7 +35,7 @@ spring:
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
webStatFilter:
webStatFilter:
enabled: true
statViewServlet:
enabled: true
@ -54,4 +54,4 @@ spring: @@ -54,4 +54,4 @@ spring:
merge-sql: true
wall:
config:
multi-statement-allow: true
multi-statement-allow: true

Loading…
Cancel
Save