1

我有简单的配置服务器实现,当我浏览/health端点时,我得到:

{ 
  status:"UP",
  "details":{
    "configserver":{
       "status":"UP",
       "details":{
        "repositories":[
           {
              ...

如何在我的配置服务器再次检查配置服务器运行状况时停止此操作。这导致配置服务器对 git 进行多次调用,这在我的场景中是不需要的。

4

1 回答 1

5

spring.cloud.config.server.health.enabled=false

于 2019-09-26T18:53:06.543 回答