Skip to content

Commit eefea9a

Browse files
authored
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
1 parent bbc1860 commit eefea9a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spring-pulsar-docs/src/main/antora/modules/ROOT/pages/reference/default-tenant-namespace.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ Spring for Apache Pulsar allows you to specify a default tenant and/or namespace
1717

1818
[discrete]
1919
=== With Spring Boot
20-
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.
20+
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.
21+
22+
If you want to disable this feature, simply set the `spring.pulsar.defaults.topic.enabled` property to `false`.
2123

2224
[discrete]
2325
=== Without Spring Boot
24-
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.
26+
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.
2527
All default consumer/reader/producer factory implementations (imperative and reactive) allow a topic builder to be specified.
2628

2729
[NOTE]

0 commit comments

Comments
 (0)