Commit 53562266 by 袁伟铭

优化代码

parent 2e6779ac
...@@ -16,7 +16,7 @@ eureka: ...@@ -16,7 +16,7 @@ eureka:
prefer-ip-address: true prefer-ip-address: true
lease-renewal-interval-in-seconds: 2 #向服务端发送心跳间隔 lease-renewal-interval-in-seconds: 2 #向服务端发送心跳间隔
lease-expiration-duration-in-seconds: 6 #告诉服务端多少秒没收到心跳将我踢出掉 lease-expiration-duration-in-seconds: 6 #告诉服务端多少秒没收到心跳将我踢出掉
instance-id: ${spring.cloud.client.ip-address}:${spring.application.name}:${server.port} instance-id: ${spring.cloud.client.ip-address}:${server.port}
client: client:
registry-fetch-interval-seconds: 2 #从服务端注册表中获取注册信息的时间间隔 registry-fetch-interval-seconds: 2 #从服务端注册表中获取注册信息的时间间隔
serviceUrl: serviceUrl:
......
...@@ -16,7 +16,7 @@ eureka: ...@@ -16,7 +16,7 @@ eureka:
prefer-ip-address: true prefer-ip-address: true
lease-renewal-interval-in-seconds: 2 #向服务端发送心跳间隔 lease-renewal-interval-in-seconds: 2 #向服务端发送心跳间隔
lease-expiration-duration-in-seconds: 6 #告诉服务端多少秒没收到心跳将我踢出掉 lease-expiration-duration-in-seconds: 6 #告诉服务端多少秒没收到心跳将我踢出掉
instance-id: ${spring.cloud.client.ip-address}:${spring.application.name}:${server.port} instance-id: ${spring.cloud.client.ip-address}:${server.port}
client: client:
registry-fetch-interval-seconds: 2 #从服务端注册表中获取注册信息的时间间隔 registry-fetch-interval-seconds: 2 #从服务端注册表中获取注册信息的时间间隔
serviceUrl: serviceUrl:
......
...@@ -24,7 +24,7 @@ eureka: ...@@ -24,7 +24,7 @@ eureka:
prefer-ip-address: true prefer-ip-address: true
lease-renewal-interval-in-seconds: 2 #向服务端发送心跳间隔 lease-renewal-interval-in-seconds: 2 #向服务端发送心跳间隔
lease-expiration-duration-in-seconds: 6 #告诉服务端多少秒没收到心跳将我踢出掉 lease-expiration-duration-in-seconds: 6 #告诉服务端多少秒没收到心跳将我踢出掉
instance-id: ${spring.cloud.client.ip-address}:${spring.application.name}:${server.port} instance-id: ${spring.cloud.client.ip-address}:${server.port}
client: client:
registry-fetch-interval-seconds: 2 #从服务端注册表中获取注册信息的时间间隔 registry-fetch-interval-seconds: 2 #从服务端注册表中获取注册信息的时间间隔
serviceUrl: serviceUrl:
......
...@@ -11,7 +11,7 @@ eureka: # 相关文章:https://blog.csdn.net/weixin_49149614/article/details/1 ...@@ -11,7 +11,7 @@ eureka: # 相关文章:https://blog.csdn.net/weixin_49149614/article/details/1
instance: instance:
#设置使用IP注册就会优先使用IP,hostname则无效 #设置使用IP注册就会优先使用IP,hostname则无效
prefer-ip-address: true prefer-ip-address: true
instance-id: ${spring.cloud.client.ip-address}:${spring.application.name}:${server.port} instance-id: ${spring.cloud.client.ip-address}:${server.port}
server: server:
# 关闭自我保护机制(程序停掉了还注册的问题) # 关闭自我保护机制(程序停掉了还注册的问题)
enable-self-preservation: false enable-self-preservation: false
......
...@@ -16,7 +16,7 @@ eureka: ...@@ -16,7 +16,7 @@ eureka:
prefer-ip-address: true prefer-ip-address: true
lease-renewal-interval-in-seconds: 2 #向服务端发送心跳间隔 lease-renewal-interval-in-seconds: 2 #向服务端发送心跳间隔
lease-expiration-duration-in-seconds: 6 #告诉服务端多少秒没收到心跳将我踢出掉 lease-expiration-duration-in-seconds: 6 #告诉服务端多少秒没收到心跳将我踢出掉
instance-id: ${spring.cloud.client.ip-address}:${spring.application.name}:${server.port} instance-id: ${spring.cloud.client.ip-address}:${server.port}
client: client:
registry-fetch-interval-seconds: 2 #从服务端注册表中获取注册信息的时间间隔 registry-fetch-interval-seconds: 2 #从服务端注册表中获取注册信息的时间间隔
serviceUrl: serviceUrl:
......
...@@ -16,7 +16,7 @@ eureka: ...@@ -16,7 +16,7 @@ eureka:
prefer-ip-address: true prefer-ip-address: true
lease-renewal-interval-in-seconds: 2 #向服务端发送心跳间隔 lease-renewal-interval-in-seconds: 2 #向服务端发送心跳间隔
lease-expiration-duration-in-seconds: 6 #告诉服务端多少秒没收到心跳将我踢出掉 lease-expiration-duration-in-seconds: 6 #告诉服务端多少秒没收到心跳将我踢出掉
instance-id: ${spring.cloud.client.ip-address}:${spring.application.name}:${server.port} instance-id: ${spring.cloud.client.ip-address}:${server.port}
client: client:
registry-fetch-interval-seconds: 2 #从服务端注册表中获取注册信息的时间间隔 registry-fetch-interval-seconds: 2 #从服务端注册表中获取注册信息的时间间隔
serviceUrl: serviceUrl:
......
...@@ -16,7 +16,7 @@ eureka: ...@@ -16,7 +16,7 @@ eureka:
prefer-ip-address: true prefer-ip-address: true
lease-renewal-interval-in-seconds: 2 #向服务端发送心跳间隔 lease-renewal-interval-in-seconds: 2 #向服务端发送心跳间隔
lease-expiration-duration-in-seconds: 6 #告诉服务端多少秒没收到心跳将我踢出掉 lease-expiration-duration-in-seconds: 6 #告诉服务端多少秒没收到心跳将我踢出掉
instance-id: ${spring.cloud.client.ip-address}:${spring.application.name}:${server.port} instance-id: ${spring.cloud.client.ip-address}:${server.port}
client: client:
registry-fetch-interval-seconds: 2 #从服务端注册表中获取注册信息的时间间隔 registry-fetch-interval-seconds: 2 #从服务端注册表中获取注册信息的时间间隔
serviceUrl: serviceUrl:
......
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