Skip to content

rashsvr/RabitMQ-With-Springboot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐇 RabbitMQ With Spring Boot 🧰

This project demonstrates how to integrate RabbitMQ with a Spring Boot application. It showcases basic message 📩 publishing and consuming functionalities using RabbitMQ.


✨ Features

  • 📨 Message Producer – Sends messages to a RabbitMQ queue
  • 📬 Message Consumer – Listens to messages from the queue
  • ⚙️ Spring Boot Integration – Simplified setup with Spring Boot

🛠️ Prerequisites

  • ☕ Java 11 or higher
  • 🐰 RabbitMQ (local or cloud)
  • 📦 Maven (for dependency management)

⚙️ Configure RabbitMQ

  1. 🧪 Install RabbitMQ – Follow the official docs
  2. ▶️ Start RabbitMQ Server – Run it using the appropriate command for your OS

📦 Add Dependencies

In your pom.xml, include the following:

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-amqp</artifactId>
</dependency>

🚀 Running the Application

  1. 🧹 Build the Project
mvn clean install
  1. ▶️ Run the Application
mvn spring-boot:run

📤 Sending Messages

Use Postman or curl to send messages:

curl --header "Content-Type: application/json" \
  --request POST \
  --data '{"message":"Hello, RabbitMQ!"}' \
  http://localhost:8080/send

📄 License

Licensed under the MIT License 📘


Happy coding! 💻✨
🔗 Visit the repo


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages