Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
gs1-office-web-sit
Commits
9485e338
Commit
9485e338
authored
Dec 23, 2021
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【新增】修改redis配置
parent
3962b0a7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
16 deletions
+30
-16
application-dev.yml
src/main/resources/application-dev.yml
+13
-0
application-test.yml
src/main/resources/application-test.yml
+17
-3
application.yml
src/main/resources/application.yml
+0
-13
No files found.
src/main/resources/application-dev.yml
View file @
9485e338
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
:
...
...
src/main/resources/application-test.yml
View file @
9485e338
...
@@ -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
src/main/resources/application.yml
View file @
9485e338
...
@@ -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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment