Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 631 Bytes

README.md

File metadata and controls

32 lines (19 loc) · 631 Bytes

spring-boot-rabbitmq

Código fonte do Post: RabbitMQ no Spring Boot.

Pré requisito

  • Maven 3
  • Java 8
  • RabbitMQ 3.7.2

Configurando RabbitMQ

  • Acessar http://localhost:15672/#/queue
  • Criar Queue com o nome OrderQueue com o atribributo Durability Durable

Preparando ambiente

  • cd spring-boot-rabbitmq
  • mvn clean package

Executando

Enviando pedidos para fila do RabbitMQ

  • cd spring-boot-rabbitmq/sender
  • mvn spring-boot:run

Consumindo fila do RabbitMQ

  • cd spring-boot-rabbitmq/consumer
  • mvn spring-boot:run