gpt4 book ai didi

spring-boot - 如何禁用 configserver Health 页面检查默认标签 git

转载 作者:行者123 更新时间:2023-12-03 08:52:09 26 4
gpt4 key购买 nike

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

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

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

最佳答案

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

关于spring-boot - 如何禁用 configserver Health 页面检查默认标签 git,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58122608/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com