1

我想自定义客户端属性,“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

如何更改属性?

4

0 回答 0