Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个托管在 PCF 环境中的 Spring Boot 应用程序,我想将它连接到托管在 PCF 外部的配置服务器。我怎么能做到这一点?在网上搜索,我发现可以使用 PCF CUPS,但我不知道如何继续。
是的,您可以连接到 PCF 之外的配置服务器(例如:Hashicorp 的领事)。使用 bootstrap.properties 是获取配置的理想方法,您需要具有以下参数:
spring.cloud.consul.host= spring.cloud.consul.port= spring.cloud.consul.config.name=
与相关令牌一起安全连接
spring.cloud.consul.config.acl-token=