我想通过命令行的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的任何资源。
谢谢你的帮助