Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-backend
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
framework
cloud-backend
Commits
8ebbc68a
Commit
8ebbc68a
authored
Feb 20, 2024
by
袁伟铭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码
parent
53562266
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
admin-server/src/main/resources/bootstrap.yml
+5
-3
file-server/src/main/resources/bootstrap.yml
+1
-1
user-server/src/main/resources/bootstrap.yml
+8
-3
No files found.
admin-server/src/main/resources/bootstrap.yml
View file @
8ebbc68a
...
...
@@ -18,16 +18,18 @@ eureka:
lease-expiration-duration-in-seconds
:
6
#告诉服务端多少秒没收到心跳将我踢出掉
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
client
:
registry-fetch-interval-seconds
:
2
#从服务端注册表中获取注册信息的时间间隔
registry-fetch-interval-seconds
:
6
#从服务端注册表中获取注册信息的时间间隔
serviceUrl
:
defaultZone
:
@
register.url@
#Feign 超时配置
feign
:
client
:
config
:
default
:
connect-timeout
:
2000
#连接超时时间
read-timeout
:
10000
#读超时时间
connect-timeout
:
2000
# 连接超时时间 ms
read-timeout
:
10000
# 读取超时时间 ms
# logger-level: BASIC # 仅记录请求的方法,URL以及响应状态码和执行时间。四种不同级别:NONE、BASIC、HEADERS、FULL
ribbon
:
# ribbon服务列表刷新间隔(单位ms)
...
...
file-server/src/main/resources/bootstrap.yml
View file @
8ebbc68a
...
...
@@ -18,7 +18,7 @@ eureka:
lease-expiration-duration-in-seconds
:
6
#告诉服务端多少秒没收到心跳将我踢出掉
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
client
:
registry-fetch-interval-seconds
:
2
#从服务端注册表中获取注册信息的时间间隔
registry-fetch-interval-seconds
:
6
#从服务端注册表中获取注册信息的时间间隔
serviceUrl
:
defaultZone
:
@
register.url@
...
...
user-server/src/main/resources/bootstrap.yml
View file @
8ebbc68a
...
...
@@ -18,16 +18,21 @@ eureka:
lease-expiration-duration-in-seconds
:
6
#告诉服务端多少秒没收到心跳将我踢出掉
instance-id
:
${spring.cloud.client.ip-address}:${server.port}
client
:
registry-fetch-interval-seconds
:
2
#从服务端注册表中获取注册信息的时间间隔
registry-fetch-interval-seconds
:
6
#从服务端注册表中获取注册信息的时间间隔
serviceUrl
:
defaultZone
:
@
register.url@
#Feign 超时配置
feign
:
client
:
config
:
default
:
connect-timeout
:
2000
#连接超时时间
read-timeout
:
10000
#读超时时间
connect-timeout
:
2000
# 连接超时时间 ms
read-timeout
:
10000
# 读取超时时间 ms
# logger-level: BASIC # 仅记录请求的方法,URL以及响应状态码和执行时间。四种不同级别:NONE、BASIC、HEADERS、FULL
ADMIN-SERVER
:
# 针对ADMIN服务的配置
connect-timeout
:
2000
read-timeout
:
20000
ribbon
:
# ribbon服务列表刷新间隔(单位ms)
...
...
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