Adding the Spring Starter RabbitMQ dependency

As we did before in the Twitter Gathering project, we need to add spring-boot-starter-amqp to provide some auto-configuration for us. To do that, we need to add the following snippet to our pom.xml:

<dependency>  <groupId>org.springframework.boot</groupId>  <artifactId>spring-boot-starter-amqp</artifactId></dependency>

Right. Now, it is time to configure the RabbitMQ connections. We will do this in the next section.

Get Spring 5.0 By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.