by BehindJava
How to configure Rabbit MQ in Spring Boot Application
In this tutorial we are learn about configuring the Rabbit MQ in Spring Boot application.
Once Rabbit MQ is up and running. Go to the Spring cloud Config server application.properties and add the below configuration details i.e., host as a local host since Rabbit MQ is running on my local machine and port number along with the username and password.
spring.rabbitmq.host=localhost
spring.rabbitmq.port=5672
spring.rabbitmq.username=guest
spring.rabbitmq.password=guest
Add the above configuration details to all the micro services and Zuul API gateway which enables our micro services to connect with the Rabbit MQ and recieve the dynamic configuration updates and run all the micro services and test the API’s using postman by making changes in the remote repository.