Código fonte do Post: RabbitMQ no Spring Boot.
- Maven 3
- Java 8
- RabbitMQ 3.7.2
- Acessar
http://localhost:15672/#/queue
- Criar Queue com o nome
OrderQueue
com o atribributo DurabilityDurable
cd spring-boot-rabbitmq
mvn clean package
cd spring-boot-rabbitmq/sender
mvn spring-boot:run
cd spring-boot-rabbitmq/consumer
mvn spring-boot:run