【发布时间】:2021-11-06 16:52:40
【问题描述】:
我有一个 Spring Boot 应用程序,它使用类似于以下的配置连接到一个慰藉队列。
spring:
cloud:
function:
definition: emitSensorReading
stream:
poller:
fixed-delay: 5000
bindings:
emitSensorReading-out-0:
destination: sensor/temperature/fahrenheit
binder: local-solace
binders:
local-solace:
type: solace
environment:
solace:
java:
host: tcp://localhost:55555
msgVpn: default
clientUsername: default
clientPassword: default
connectRetries: -1
reconnectRetries: -1
我想通过连接到 API 来读取密码,而不是将其硬编码到 application.yaml 文件中。我有一个将返回密码的 REST 服务。如何设置我的 Spring Boot 应用程序以通过从 REST 服务获取密码来建立安全连接?
【问题讨论】:
标签: spring spring-boot message-queue spring-cloud-stream solace