spring-boot-admin客户端自定义health-url无效

时间:2017-07-19 12:39:33

标签: spring-boot-admin

我想自定义客户端属性,“health-url”,“management-url”,“service-url”。这是application.properties中的属性。

spring.boot.admin.client.health-url= http://localhost:8080/registry/health
spring.boot.admin.client.management-url= http://localhost:8080/registry
spring.boot.admin.client.service-url= http://localhost:8080/registry

默认属性为

managementUrl=http://localhost:8080, 
healthUrl=http://localhost:8080/health, 
serviceUrl=http://localhost:8080, 

但属性被忽略了。 我发现问题Admin Starter Client ignoring Service, 但是这些属性没有用处

spring.boot.admin.client.ignoreUnknownFields=true

如何更改属性?

0 个答案:

没有答案