W3Cschool
恭喜您成為首批注冊(cè)用戶(hù)
獲得88經(jīng)驗(yàn)值獎(jiǎng)勵(lì)
默認(rèn)配置將創(chuàng)建DefaultSchemaRegistryClient
bean。如果要使用Confluent模式注冊(cè)表,則需要?jiǎng)?chuàng)建類(lèi)型為ConfluentSchemaRegistryClient
的bean,該類(lèi)型將替代框架默認(rèn)配置的類(lèi)型。下面的示例說(shuō)明如何創(chuàng)建這樣的bean:
@Bean public SchemaRegistryClient schemaRegistryClient(@Value("${spring.cloud.stream.schemaRegistryClient.endpoint}") String endpoint){ ConfluentSchemaRegistryClient client = new ConfluentSchemaRegistryClient(); client.setEndpoint(endpoint); return client; }
ConfluentSchemaRegistryClient已針對(duì)Confluent平臺(tái)4.0.0版進(jìn)行了測(cè)試。
Copyright©2021 w3cschool編程獅|閩ICP備15016281號(hào)-3|閩公網(wǎng)安備35020302033924號(hào)
違法和不良信息舉報(bào)電話(huà):173-0602-2364|舉報(bào)郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號(hào)
聯(lián)系方式:
更多建議: