Commit 9485e338 by 吴迪

【新增】修改redis配置

parent 3962b0a7
spring: 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: datasource:
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
druid: druid:
......
...@@ -32,6 +32,19 @@ spring: ...@@ -32,6 +32,19 @@ spring:
wall: wall:
config: config:
multi-statement-allow: true 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: #dynamic:
...@@ -58,6 +71,7 @@ file: ...@@ -58,6 +71,7 @@ file:
save: save:
path: /uploadFileResource/ path: /uploadFileResource/
request: request:
prefix: http://81.68.189.225:9091/office/uploadFileResource/ prefix: http://192.168.0.77:9091/office/uploadFileResource/
ueditorSavePath: /uploadFileResource/ ueditorSavePath: /uploadFileResource/
\ No newline at end of file prefix_host: http://192.168.0.77:9091/office/
\ No newline at end of file
...@@ -25,19 +25,6 @@ spring: ...@@ -25,19 +25,6 @@ spring:
max-file-size: 100MB max-file-size: 100MB
max-request-size: 100MB max-request-size: 100MB
enabled: true 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: mvc:
throw-exception-if-no-handler-found: true throw-exception-if-no-handler-found: true
# resources: # 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