refactor: 系统配置修改
This commit is contained in:
parent
e5b2cc6e31
commit
575e5d1b61
@ -1,58 +1,59 @@
|
|||||||
# 数据源配置
|
# 数据源配置
|
||||||
spring:
|
spring:
|
||||||
datasource:
|
datasource:
|
||||||
type: com.alibaba.druid.pool.DruidDataSource
|
type: com.alibaba.druid.pool.DruidDataSource
|
||||||
driverClassName: dm.jdbc.driver.DmDriver
|
driverClassName: dm.jdbc.driver.DmDriver
|
||||||
druid:
|
druid:
|
||||||
# 主库数据源
|
# 主库数据源
|
||||||
master:
|
master:
|
||||||
url: jdbc:dm://30.30.2.24:5237/WMS_DJ?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
# url: jdbc:dm://30.30.2.24:5237/WMS_DJ?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||||
# url: jdbc:dm://172.16.99.19:5236/WMS_DJ?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
# url: jdbc:dm://localhost:5236/WMS_DJ?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||||
username: SYSDBA
|
url: jdbc:dm://192.168.8.60:5236/WMS_DJ?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||||
password: SYSDBA
|
username: SYSDBA
|
||||||
# 从库数据源
|
password: SYSDBA
|
||||||
slave:
|
# 从库数据源
|
||||||
# 从数据源开关/默认关闭
|
slave:
|
||||||
enabled: false
|
# 从数据源开关/默认关闭
|
||||||
url:
|
enabled: false
|
||||||
username:
|
url:
|
||||||
password:
|
username:
|
||||||
# 初始连接数
|
password:
|
||||||
initialSize: 5
|
# 初始连接数
|
||||||
# 最小连接池数量
|
initialSize: 5
|
||||||
minIdle: 10
|
# 最小连接池数量
|
||||||
# 最大连接池数量
|
minIdle: 10
|
||||||
maxActive: 20
|
# 最大连接池数量
|
||||||
# 配置获取连接等待超时的时间
|
maxActive: 20
|
||||||
maxWait: 60000
|
# 配置获取连接等待超时的时间
|
||||||
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
|
maxWait: 60000
|
||||||
timeBetweenEvictionRunsMillis: 60000
|
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
|
||||||
# 配置一个连接在池中最小生存的时间,单位是毫秒
|
timeBetweenEvictionRunsMillis: 60000
|
||||||
minEvictableIdleTimeMillis: 300000
|
# 配置一个连接在池中最小生存的时间,单位是毫秒
|
||||||
# 配置一个连接在池中最大生存的时间,单位是毫秒
|
minEvictableIdleTimeMillis: 300000
|
||||||
maxEvictableIdleTimeMillis: 900000
|
# 配置一个连接在池中最大生存的时间,单位是毫秒
|
||||||
# 配置检测连接是否有效
|
maxEvictableIdleTimeMillis: 900000
|
||||||
validationQuery: SELECT 1 FROM DUAL
|
# 配置检测连接是否有效
|
||||||
testWhileIdle: true
|
validationQuery: SELECT 1 FROM DUAL
|
||||||
testOnBorrow: false
|
testWhileIdle: true
|
||||||
testOnReturn: false
|
testOnBorrow: false
|
||||||
webStatFilter:
|
testOnReturn: false
|
||||||
enabled: true
|
webStatFilter:
|
||||||
statViewServlet:
|
enabled: true
|
||||||
enabled: true
|
statViewServlet:
|
||||||
# 设置白名单,不填则允许所有访问
|
enabled: true
|
||||||
allow:
|
# 设置白名单,不填则允许所有访问
|
||||||
url-pattern: /druid/*
|
allow:
|
||||||
# 控制台管理用户名和密码
|
url-pattern: /druid/*
|
||||||
login-username: ruoyi
|
# 控制台管理用户名和密码
|
||||||
login-password: 123456
|
login-username: ruoyi
|
||||||
filter:
|
login-password: 123456
|
||||||
stat:
|
filter:
|
||||||
enabled: true
|
stat:
|
||||||
# 慢SQL记录
|
enabled: true
|
||||||
log-slow-sql: true
|
# 慢SQL记录
|
||||||
slow-sql-millis: 1000
|
log-slow-sql: true
|
||||||
merge-sql: true
|
slow-sql-millis: 1000
|
||||||
wall:
|
merge-sql: true
|
||||||
config:
|
wall:
|
||||||
multi-statement-allow: true
|
config:
|
||||||
|
multi-statement-allow: true
|
@ -63,7 +63,7 @@ spring:
|
|||||||
# redis 配置
|
# redis 配置
|
||||||
redis:
|
redis:
|
||||||
# 地址
|
# 地址
|
||||||
host: 30.30.2.20
|
host: 192.168.8.60
|
||||||
# 端口,默认为6379
|
# 端口,默认为6379
|
||||||
port: 6379
|
port: 6379
|
||||||
# 数据库索引
|
# 数据库索引
|
||||||
@ -126,7 +126,7 @@ xss:
|
|||||||
|
|
||||||
#Mino配置
|
#Mino配置
|
||||||
minio:
|
minio:
|
||||||
url: http://localhost:9000
|
url: http://192.168.8.60:9000
|
||||||
accessKey: seBsDKT7Ss8B4aGiNiNn
|
accessKey: seBsDKT7Ss8B4aGiNiNn
|
||||||
secretKey: IYvTR63NZE3EemLfIHGTXu72O7svMEiNHG2OoOWI
|
secretKey: IYvTR63NZE3EemLfIHGTXu72O7svMEiNHG2OoOWI
|
||||||
bucketName: wms-dj
|
bucketName: wms-dj
|
||||||
|
Loading…
Reference in New Issue
Block a user