Fix quick-start documentation
This commit is contained in:
11
index.html
11
index.html
@@ -39,7 +39,7 @@ badges:
|
||||
|
||||
Spring Cloud Stream is a framework for building message-driven microservices. Spring Cloud Stream builds upon Spring Boot to create DevOps friendly microservice applications and Spring Integration to provide connectivity to message brokers. Spring Cloud Stream provides an opinionated configuration of message brokers, introducing the concepts of persistent pub/sub semantics, consumer groups and partitions across several middleware vendors. This opinionated configuration provides the basis to create stream processing applications.
|
||||
|
||||
By adding @EnableBinding to your main application, you get immediate connectivity to a message broker and by adding @StreamListener to a method, you will receive events for stream processing.
|
||||
By adding `@EnableBinding` to your main application, you get immediate connectivity to a message broker and by adding `@StreamListener` to a method, you will receive events for stream processing.
|
||||
|
||||
{% endcapture %}
|
||||
|
||||
@@ -52,10 +52,11 @@ By adding @EnableBinding to your main application, you get immediate connectivit
|
||||
<script type="text/javascript">{% include custom.js %}</script>
|
||||
{% include download_widget.md %}
|
||||
|
||||
As long as Spring Cloud Stream and a Spring Cloud Stream binder are on the
|
||||
classpath any Spring Boot application with `@EnableBinding` will bind to an external broker provided by the bus (e.g. Rabbit MQ or Kafka, depending on the implementation you choose). Sample application:
|
||||
As long as Spring Cloud Stream and a Spring Cloud Stream Binder dependencies are on the classpath any Spring Boot application with `@EnableBinding` will bind to the external message broker (e.g. Rabbit MQ or Apache Kafka, depending on the binder-implementation of choice).
|
||||
|
||||
Head over to http://start.spring.io and create a project with the 'Stream Kafka' dependency. Modify the main class as shown below:
|
||||
Let's see it in action!
|
||||
|
||||
Head over to http://start.spring.io and create a project with the 'Stream Kafka' dependency. Modify the main class as shown below:
|
||||
|
||||
```java
|
||||
@SpringBootApplication
|
||||
@@ -75,7 +76,7 @@ public class StreamdemoApplication {
|
||||
}
|
||||
```
|
||||
|
||||
Make sure Kafka is running when you run the application. You can use the `kafka-console-consumer.sh` utility provided by Kafka to monitor messages sent on the `output` topic.
|
||||
Make sure Kafka is running when you run the application. You can use the `kafka-console-consumer.sh` utility provided by Kafka to monitor messages sent on the `output` topic.
|
||||
|
||||
{% endcapture %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user