【问题标题】:Is there possibility to Spring Config Server gets config from itself?Spring Config Server 是否有可能从自身获取配置?
【发布时间】:2016-10-18 02:39:24
【问题描述】:

是否有可能或解决方法告诉 Spring Config Server 从自身获取配置?根据配置文件,我对所有 Spring Boot 应用程序都有一些通用配置,我希望配置服务器能够在不复制粘贴的情况下访问它们。

【问题讨论】:

    标签: java spring spring-boot spring-cloud


    【解决方案1】:

    来自docs

    在这种情况下可能有用的可选属性是spring.cloud.config.server.bootstrap,它是一个标志,表明服务器应该从自己的远程存储库配置自己。

    所以设置spring.cloud.config.server.bootstrap=true

    【讨论】:

      猜你喜欢
      • 2018-03-22
      • 2017-02-23
      • 1970-01-01
      • 2021-01-09
      • 1970-01-01
      • 1970-01-01
      • 2017-10-12
      • 1970-01-01
      • 2020-06-03
      相关资源
      最近更新 更多