Springboot client 常用配置详解

 

Property name
Description
Default value
spring.boot.admin.client.enabled
Enables the Spring Boot Admin Client.
true
spring.boot.admin.client.url
Comma separated ordered list of URLs of the Spring Boot Admin server to register at. This triggers the AutoConfiguration. Mandatory.
 
spring.boot.admin.client.api-path
Http-path of registration endpoint at your admin server.
"instances"
spring.boot.admin.client.username spring.boot.admin.client.password
Username and password in case the SBA Server api is protected with HTTP Basic authentication.
 
spring.boot.admin.client.period
Interval for repeating the registration (in ms).
10,000
spring.boot.admin.client.connect-timeout
Connect timeout for the registration (in ms).
5,000
spring.boot.admin.client.read-timeout
Read timeout for the registration (in ms).
5,000
spring.boot.admin.client.auto-registration
If set to true the periodic task to register the application is automatically scheduled after the application is ready.
true
spring.boot.admin.client.auto-deregistration
Switch to enable auto-deregistration at Spring Boot Admin server when context is closed. If the value is unset the feature is active if a running CloudPlatform was detected.
null
spring.boot.admin.client.register-once
If set to true the client will only register against one admin server (in order defined by spring.boot.admin.instance.url); if that admin server goes down, will automatically register against the next admin server. If false, will register against all admin servers.
true
spring.boot.admin.client.instance.health-url
Health-url to register with. Can be overridden in case the reachable URL is different (e.g. Docker). Must be unique in registry.
Guessed based on management-url and endpoints.health.id.
spring.boot.admin.client.instance.management-base-url
Base url for computing the management-url to register with. The path is inferred at runtime, and appended to the base url.
Guessed based on management.port, service-url and server.servlet-path.
spring.boot.admin.client.instance.management-url
Management-url to register with. Can be overridden in case the reachable url is different (e.g. Docker).
Guessed based on management-base-url and management.context-path.
spring.boot.admin.client.instance.service-base-url
Base url for computing the service-url to register with. The path is inferred at runtime, and appended to the base url.
Guessed based on hostname, server.port.
spring.boot.admin.client.instance.service-url
Service-url to register with. Can be overridden in case the reachable url is different (e.g. Docker).
Guessed based on service-base-url and server.context-path.
spring.boot.admin.client.instance.name
Name to register with.
${spring.application.name}if set, "spring-boot-application" otherwise.
spring.boot.admin.client.instance.prefer-ip
Use the ip-address rather then the hostname in the guessed urls. If server.address / management.address is set, it get used. Otherwise the IP address returned from InetAddress.getLocalHost() gets used.
false
spring.boot.admin.client.instance.metadata.*
Metadata key-value-pairs to be associated with this instance.
 
spring.boot.admin.client.instance.metadata.tags.*
Tags as key-value-pairs to be associated with this instance.
 

转载于:https://www.cnblogs.com/xiaohouzai/p/10030638.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值