@@ -90,7 +90,6 @@ tasks.withType(org.asciidoctor.gradle.jvm.AbstractAsciidoctorTask) {
|
||||
"spring-cloud-stream-version": project.springCloudStreamVersion ?: 'current',
|
||||
"spring-pulsar-version": project.version,
|
||||
"spring-pulsar-binder-version": project.springPulsarBinderVersion ?: 'current',
|
||||
"spring-pulsar-starter-version": project.springPulsarStarterVersion ?: 'current',
|
||||
"pulsar-client-version": project.pulsarClientVersion ?: 'current',
|
||||
"pulsar-client-reactive-version": project.pulsarClientReactiveVersion ?: 'current',
|
||||
"is-snapshot-version": project.version.endsWith("-SNAPSHOT")
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
:spring-cloud-stream-version: current
|
||||
:spring-pulsar-version: current
|
||||
:spring-pulsar-binder-version: current
|
||||
:spring-pulsar-starter-version: current
|
||||
:pulsar-client-version: current
|
||||
:pulsar-client-reactive-version: current
|
||||
:is-snapshot-version: false
|
||||
|
||||
@@ -10,15 +10,15 @@ The administration implements an interface called `PulsarAdminOperations` and pr
|
||||
When you use the Pulsar Spring Boot starter, you get the `PulsarAdministration` auto-configured.
|
||||
|
||||
By default, the application tries to connect to a local Pulsar instance at `\http://localhost:8080`.
|
||||
This can be adjusted by setting the `spring.pulsar.administration.service-url` property to a different value in the form `(http|https)://<host>:<port>`.
|
||||
This can be adjusted by setting the `spring.pulsar.admin.service-url` property to a different value in the form `(http|https)://<host>:<port>`.
|
||||
|
||||
There are many application properties available to configure the client.
|
||||
See the {spring-boot-pulsar-config-props}[`spring.pulsar.administration.*`] application properties.
|
||||
See the {spring-boot-pulsar-config-props}[`spring.pulsar.admin.*`] application properties.
|
||||
|
||||
[[pulsar-admin-authentication]]
|
||||
=== Authentication
|
||||
When accessing a Pulsar cluster that requires authentication, the admin client requires the same security configuration as the regular Pulsar client.
|
||||
You can use the aforementioned <<pulsar.adoc#client-authentication,security configuration>> by replacing `spring.pulsar.client` with `spring.pulsar.administration`.
|
||||
You can use the aforementioned <<pulsar.adoc#client-authentication,security configuration>> by replacing `spring.pulsar.client` with `spring.pulsar.admin`.
|
||||
|
||||
[[pulsar-auto-topic-creation]]
|
||||
== Automatic Topic Creation
|
||||
|
||||
@@ -250,7 +250,7 @@ Spring Cloud Stream binder for Apache Pulsar comes with an out-of-the-box provis
|
||||
When running an application, if the necessary topics are absent, Pulsar will create the topics for you.
|
||||
However, this is a basic non-partitioned topic, and if you want advanced features like creating a partitioned topic, you can rely on the topic provisioner in the binder.
|
||||
Pulsar topic provisioner uses `PulsarAdministration` from the framework, which uses the `PulsarAdminBuilder.`
|
||||
For this reason, you need to set the `spring.pulsar.administration.service-url` property unless you are running Pulsar on the default server and port.
|
||||
For this reason, you need to set the `spring.pulsar.admin.service-url` property unless you are running Pulsar on the default server and port.
|
||||
|
||||
=== Specifying partition count when creating the topic
|
||||
|
||||
|
||||
@@ -13,9 +13,9 @@ Spring Boot applications need only the `spring-pulsar-spring-boot-starter` depen
|
||||
----
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.pulsar</groupId>
|
||||
<artifactId>spring-pulsar-spring-boot-starter</artifactId>
|
||||
<version>{spring-pulsar-starter-version}</version>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-pulsar</artifactId>
|
||||
<version>{spring-boot-version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
----
|
||||
@@ -24,7 +24,7 @@ Spring Boot applications need only the `spring-pulsar-spring-boot-starter` depen
|
||||
.Gradle
|
||||
----
|
||||
dependencies {
|
||||
implementation 'org.springframework.pulsar:spring-pulsar-spring-boot-starter:{spring-pulsar-starter-version}'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-pulsar:{spring-boot-version}'
|
||||
}
|
||||
----
|
||||
|
||||
|
||||
@@ -14,9 +14,9 @@ Spring Boot applications need only the `spring-pulsar-reactive-spring-boot-start
|
||||
----
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.pulsar</groupId>
|
||||
<artifactId>spring-pulsar-reactive-spring-boot-starter</artifactId>
|
||||
<version>{spring-pulsar-starter-version}</version>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-pulsar-reactive</artifactId>
|
||||
<version>{spring-boot-version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
----
|
||||
@@ -24,7 +24,7 @@ Spring Boot applications need only the `spring-pulsar-reactive-spring-boot-start
|
||||
.Gradle
|
||||
----
|
||||
dependencies {
|
||||
implementation 'org.springframework.pulsar:spring-pulsar-reactive-spring-boot-starter:{spring-pulsar-starter-version}'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-pulsar-reactive:{spring-boot-version}'
|
||||
}
|
||||
----
|
||||
|
||||
|
||||
Reference in New Issue
Block a user