From eefea9af69c92cea8e943433f4f11edaf08330a0 Mon Sep 17 00:00:00 2001 From: Chris Bono Date: Mon, 19 Aug 2024 15:26:17 -0500 Subject: [PATCH] Update default tenant/namespace docs (#805) * The Spring Boot config props are now under the `spring.pulsar.defaults.topic` prefix. * There is also a new `enabled` property. See #756 --- .../ROOT/pages/reference/default-tenant-namespace.adoc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spring-pulsar-docs/src/main/antora/modules/ROOT/pages/reference/default-tenant-namespace.adoc b/spring-pulsar-docs/src/main/antora/modules/ROOT/pages/reference/default-tenant-namespace.adoc index b810d8a3..d0e44473 100644 --- a/spring-pulsar-docs/src/main/antora/modules/ROOT/pages/reference/default-tenant-namespace.adoc +++ b/spring-pulsar-docs/src/main/antora/modules/ROOT/pages/reference/default-tenant-namespace.adoc @@ -17,11 +17,13 @@ Spring for Apache Pulsar allows you to specify a default tenant and/or namespace [discrete] === With Spring Boot -When using the Spring Boot you can simply set the {spring-boot-pulsar-config-props}[`spring.pulsar.defaults.tenant`] and {spring-boot-pulsar-config-props}[`spring.pulsar.defaults.namespace`] application properties to specify these defaults. +When using the Spring Boot you can simply set the {spring-boot-pulsar-config-props}[`spring.pulsar.defaults.topic.tenant`] and {spring-boot-pulsar-config-props}[`spring.pulsar.defaults.topic.namespace`] application properties to specify these defaults. + +If you want to disable this feature, simply set the `spring.pulsar.defaults.topic.enabled` property to `false`. [discrete] === Without Spring Boot -However, if you are instead manually configuring the components, you can provide a `PulsarTopicBuilder` configured with the desired default topic and namespace when constructing the corresponding producer or consumer factory. +However, if you are instead manually configuring the components, you will have to provide a `PulsarTopicBuilder` configured with the desired default topic and namespace when constructing the corresponding producer or consumer factory. All default consumer/reader/producer factory implementations (imperative and reactive) allow a topic builder to be specified. [NOTE]