【发布时间】:2017-11-14 05:47:09
【问题描述】:
有谁知道是否可以通过 REST 接口使用来自 spring 配置服务器的配置值。如果是这样,界面上是否有任何文档? TIA。
【问题讨论】:
标签: spring-boot spring-cloud-config
有谁知道是否可以通过 REST 接口使用来自 spring 配置服务器的配置值。如果是这样,界面上是否有任何文档? TIA。
【问题讨论】:
标签: spring-boot spring-cloud-config
official API doc 托管在 GitHub 上。
我已手动使用 REST API 进行测试。我发现this sample 应用很有用。
| 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") |
【讨论】: