Commit 9485e338 by 吴迪

【新增】修改redis配置

parent 3962b0a7
spring:
redis:
open: true # 是否开启redis缓存 true开启 false关闭
database: 0
host: 81.68.189.225
port: 6379
password: # 密码(默认为空)
timeout: 6000ms # 连接超时时长(毫秒)
jedis:
pool:
max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 5 # 连接池中的最小空闲连接
datasource:
type: com.alibaba.druid.pool.DruidDataSource
druid:
......
......@@ -32,6 +32,19 @@ spring:
wall:
config:
multi-statement-allow: true
redis:
open: true # 是否开启redis缓存 true开启 false关闭
database: 0
host: 192.168.0.77
port: 6379
password: # 密码(默认为空)
timeout: 6000ms # 连接超时时长(毫秒)
jedis:
pool:
max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 5 # 连接池中的最小空闲连接
##多数据源的配置
#dynamic:
......@@ -58,6 +71,7 @@ file:
save:
path: /uploadFileResource/
request:
prefix: http://81.68.189.225:9091/office/uploadFileResource/
prefix: http://192.168.0.77:9091/office/uploadFileResource/
ueditorSavePath: /uploadFileResource/
\ No newline at end of file
ueditorSavePath: /uploadFileResource/
prefix_host: http://192.168.0.77:9091/office/
\ No newline at end of file
......@@ -25,19 +25,6 @@ spring:
max-file-size: 100MB
max-request-size: 100MB
enabled: true
redis:
open: true # 是否开启redis缓存 true开启 false关闭
database: 0
host: 81.68.189.225
port: 6379
password: # 密码(默认为空)
timeout: 6000ms # 连接超时时长(毫秒)
jedis:
pool:
max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 5 # 连接池中的最小空闲连接
mvc:
throw-exception-if-no-handler-found: true
# resources:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment