【问题标题】:REST access to Spring Config Server from non-spring application从非 Spring 应用程序对 Spring Config Server 的 REST 访问
【发布时间】:2017-11-14 05:47:09
【问题描述】:

有谁知道是否可以通过 REST 接口使用来自 spring 配置服务器的配置值。如果是这样,界面上是否有任何文档? TIA。

【问题讨论】:

    标签: spring-boot spring-cloud-config


    【解决方案1】:

    official API doc 托管在 GitHub 上。

    我已手动使用 REST API 进行测试。我发现this sample 应用很有用。

    API 资源

    |  Path                               |  Description                                                        |
    | ----------------------------------- | ------------------------------------------------------------------- |
    |  /{app}/{profile}                   |  Configuration data for app in Spring profile (comma-separated).    |
    |  /{app}/{profile}/{label}           |  Add a git label                                                    |
    |  /{app}/{profiels}{label}/{path}    |  An environment-specific plain text config file (at "path")         |
    

    【讨论】:

      猜你喜欢
      • 2021-10-09
      • 2021-03-22
      • 2016-07-25
      • 2019-01-19
      • 2016-07-30
      • 2015-10-04
      • 2015-05-27
      • 2020-01-17
      • 2018-03-18
      相关资源
      最近更新 更多