Spring Cloud Stream生產(chǎn)者目標(biāo)配置

2024-01-10 16:00 更新

如果打開(kāi)自動(dòng)資源創(chuàng)建功能,并且與目標(biāo)名稱對(duì)應(yīng)的主題不存在,則會(huì)創(chuàng)建該資源。

例如,對(duì)于以下配置,將創(chuàng)建一個(gè)名為myEvents的主題。

application.properties。 

spring.cloud.stream.bindings.events.destination=myEvents
spring.cloud.stream.gcp.pubsub.bindings.events.producer.auto-create-resources=true

以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)