问题描述
我正在尝试利用这种能力来提供/{name}/{profile}/{label}
结构之外的临时文件,如此处记录的:https://cloud.spring.io/spring-cloud-config/multi/multi__serving_plain_text.html
按记录和预期使用/{name}/{profile}/{label}/{path}
进行调用时,变量替换在即席文件中起作用。例如,在调用时:/myApp/default/master/extra.properties
并假设application.properties
包含i.get.replaced: bar
foo: ${i.get.replaced}
password: {cipher}369e84baac5c99f48814dcef4c20fe974411f3529a1e5db72b8a20da1431e494
使用加密值可用于/{name}/{profile}/{label}
结构(即application.properties)中的文件,但似乎不适用于即席文件:
我回来了:
foo: bar
password: {cipher}369e84baac5c99f48814dcef4c20fe974411f3529a1e5db72b8a20da1431e494
代替:
foo: bar
password: strongPass
密文不会被替换,因为它用于application.properties
或application-test.properties
此文档非常稀疏,甚至有可能吗?
找到确实提到了纯文本文件加密的更新文档,并将所需的选项添加到bootstrap.yml后,行为没有变化: https://cloud.spring.io/spring-cloud-config/reference/html/#_decrypting_plain_text
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)