|
@@ -6,16 +6,16 @@ spring:
|
|
|
druid:
|
|
|
# 主库数据源
|
|
|
master:
|
|
|
- url: jdbc:mysql://localhost:3306/ruoyi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&allowMultiQueries=true
|
|
|
+ url: jdbc:mysql://localhost:3306/digital post office app?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&allowMultiQueries=true
|
|
|
username: root
|
|
|
- password: zhangyang0311
|
|
|
+ password: 123456
|
|
|
# 从库数据源
|
|
|
slave:
|
|
|
# 从数据源开关/默认关闭
|
|
|
enabled: false
|
|
|
- url:
|
|
|
- username:
|
|
|
- password:
|
|
|
+ url:
|
|
|
+ username:
|
|
|
+ password:
|
|
|
# 初始连接数
|
|
|
initialSize: 5
|
|
|
# 最小连接池数量
|
|
@@ -35,7 +35,7 @@ spring:
|
|
|
testWhileIdle: true
|
|
|
testOnBorrow: false
|
|
|
testOnReturn: false
|
|
|
- webStatFilter:
|
|
|
+ webStatFilter:
|
|
|
enabled: true
|
|
|
statViewServlet:
|
|
|
enabled: true
|
|
@@ -54,7 +54,7 @@ spring:
|
|
|
merge-sql: false
|
|
|
wall:
|
|
|
config:
|
|
|
- multi-statement-allow: true
|
|
|
+ multi-statement-allow: true
|
|
|
# redis 配置
|
|
|
redis:
|
|
|
# 地址
|
|
@@ -64,7 +64,7 @@ spring:
|
|
|
# 数据库索引
|
|
|
database: 0
|
|
|
# 密码
|
|
|
- password:
|
|
|
+ password:
|
|
|
# 连接超时时间
|
|
|
timeout: 10s
|
|
|
lettuce:
|