This commit is contained in:
Marcin Grzejszczak
2023-09-08 16:30:18 +02:00
parent 75b52b6b90
commit 95f2e6d26c
17 changed files with 350 additions and 121 deletions

View File

@@ -3,7 +3,4 @@
* xref:_attributes.adoc[]
* xref:intro.adoc[]
* xref:quickstart.adoc[]
* xref:README.adoc[]
* xref:_configprops.adoc[]
* xref:appendix.adoc[]
* xref:sagan-index.adoc[]

View File

@@ -1,18 +0,0 @@
[[spring-cloud-bus]]
= Spring Cloud Bus
:page-section-summary-toc: 1
[[quick-start]]
== Quick Start
[[building]]
== Building
include::https://raw.githubusercontent.com/spring-cloud/spring-cloud-build/master/docs/src/main/asciidoc/building.adoc[]
[[contributing]]
== Contributing
include::https://raw.githubusercontent.com/spring-cloud/spring-cloud-build/master/docs/src/main/asciidoc/contributing.adoc[]

View File

@@ -1,14 +0,0 @@
|===
|Name | Default | Description
|spring.cloud.bus.ack.destination-service | | Service that wants to listen to acks. By default null (meaning all services).
|spring.cloud.bus.ack.enabled | `+++true+++` | Flag to switch off acks (default on).
|spring.cloud.bus.content-type | | The bus mime-type.
|spring.cloud.bus.destination | | Name of Spring Cloud Stream destination for messages.
|spring.cloud.bus.enabled | `+++true+++` | Flag to indicate that the bus is enabled.
|spring.cloud.bus.env.enabled | `+++true+++` | Flag to switch off environment change events (default on).
|spring.cloud.bus.id | `+++application+++` | The identifier for this application instance.
|spring.cloud.bus.refresh.enabled | `+++true+++` | Flag to switch off refresh events (default on).
|spring.cloud.bus.trace.enabled | `+++false+++` | Flag to switch on tracing of acks (default off).
|===

View File

@@ -0,0 +1,6 @@
[[configuration-properties]]
= Configuration Properties
Below you can find a list of configuration properties.
include::partial$_configprops.adoc[]

View File

@@ -1,26 +0,0 @@
Spring Cloud Bus links nodes of a distributed system with a lightweight message broker. This can then be used to broadcast state changes (e.g. configuration changes) or other management instructions. AMQP and Kafka broker implementations are included with the project. Alternatively, any link:https://spring.io/projects/spring-cloud-stream[Spring Cloud Stream] binder found on the classpath will work out of the box as a transport.
## Getting Started
As long as Spring Cloud Bus AMQP and RabbitMQ are on the
classpath any Spring Boot application will try to contact a RabbitMQ
server on `localhost:5672` (the default value of
`spring.rabbitmq.addresses`):
```java
@Configuration
@EnableAutoConfiguration
@RestController
public class Application {
@RequestMapping("/")
public String home() {
return "Hello World";
}
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
```