我正在使用带有GIT的Spring云配置服务器,该服务器按预期工作正常。
现在,我的要求是从Spring Cloud Server获取文件名列表。
[Spring cloud config仅提供http://localhost:8088/myconfig/default/master/config.properties之类的API以获取属性值。
是否有可用的API来获取所有文件名?如果没有,那是什么替代方法?
不幸的是,不可能。我们在项目中所做的方式-在config.properties中添加了具有所需文件名的属性,并使用
在代码中获取了文件/ {name} / {profile} / {label} / {path}的其他端点
https://cloud.spring.io/spring-cloud-config/reference/html/#_serving_plain_text