This is a simple spring-boot app that shows how to configure easily RabbitMQ with AMQP for producing and consuming messages in default format (java serialized) and JSON.
In this sample project every message is sent as JSON and then decoded on one queue as a generic Message
object and in the other
one as the original specific class.
If you want to have more information, with full explanation of this code, you can find it on my blog. First Comment from Master Branch.