Configuring RabbitMQ Reactor beans

In this section, we will configure the RabbitMQ infrastructure classes in the Spring context. We will use a @Configuration class to declare it. 

The configuration class should look like the following:

package springfive.twitterdispatcher.infra.rabbitmqimport com.fasterxml.jackson.databind.ObjectMapperimport com.fasterxml.jackson.module.kotlin.KotlinModuleimport com.rabbitmq.client.ConnectionFactoryimport org.springframework.beans.factory.annotation.Valueimport org.springframework.context.annotation.Beanimport org.springframework.context.annotation.Configurationimport reactor.rabbitmq.ReactorRabbitMqimport reactor.rabbitmq.Receiverimport reactor.rabbitmq.ReceiverOptions@Configurationclass RabbitMQConfiguration( ...

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.