Need help with spring-boot-amqp-messaging?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

153 Stars 64 Forks 16 Commits 0 Opened issues


This is a simple spring-boot app that shows how to configure easily RabbitMQ with AMQP for producing and consuming messages in default format and JSON.

Services available


Need anything else?

Contributors list

# 68,295
Spring ...
11 commits

Spring Boot AMQP messaging example with RabbitMQ

This is a simple Spring Boot app that shows how to easily configure RabbitMQ with AMQP for producing and consuming messages in default format (java serialized) and JSON.

In this sample project, each message is sent as JSON and then decoded:

  1. on a queue as a generic
  2. and on a different queue as the original specific class (with JSON deserialization).

Spring Boot AMQP Configuration Example with RabbitMQ

Note that you need a RabbitMQ server instance running locally to be able to run this application. You can use the included

file to start a new server using Docker:
docker-compose up -d

I recommend you to have a look at the full explanation of this code, you can find it on The Practical Developer site.

If you want to learn more about microservices, RabbitMQ, Spring Boot Autoconfiguration, event-driven, and microservice architecture patterns, have a look at my book.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.