小编bur*_*rki的帖子

我可以从Spring Cloud Config Server获得单个属性值吗?

我想通过命令行wget / curl调用从 Spring Cloud Config Server 获得单个属性值

单个值,因为否则我必须从响应中解析它们,并且我想使bash脚本尽可能简单

Spring Cloud Config Server的文档指出了REST API的可能性,如下所示

/{application}/{profile}[/{label}]
/{application}-{profile}.yml
/{label}/{application}-{profile}.yml
/{application}-{profile}.properties
/{label}/{application}-{profile}.properties
Run Code Online (Sandbox Code Playgroud)

是否有任何技巧来获取单个值?我搜索了很多,但什么也没找到。看起来并不需要很大。

还是可以扩展 Config Server 的EnvironmentController来实现此功能?我没有找到有关扩展Config Server的REST API的任何资源。

谢谢你的帮助

spring-cloud-config

5
推荐指数
1
解决办法
1576
查看次数

标签 统计

spring-cloud-config ×1