https://github.com/deepakmali-09/springboot-p03
This Spring Boot project demonstrates the use of ApplicationContext and Bean to implement a payment system. It dynamically selects and displays the name of the payment provider based on the user's choice during an online purchase.
https://github.com/deepakmali-09/springboot-p03
applicationcontext bean depedency-injection java spring-boot
Last synced: 2 months ago
JSON representation
This Spring Boot project demonstrates the use of ApplicationContext and Bean to implement a payment system. It dynamically selects and displays the name of the payment provider based on the user's choice during an online purchase.
- Host: GitHub
- URL: https://github.com/deepakmali-09/springboot-p03
- Owner: deepakmali-09
- Created: 2024-12-27T08:48:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-27T08:53:54.000Z (over 1 year ago)
- Last Synced: 2025-01-07T05:49:01.193Z (over 1 year ago)
- Topics: applicationcontext, bean, depedency-injection, java, spring-boot
- Language: Java
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Spring Boot Project - Payment System with ApplicationContext and Bean
This project implements a simple payment system using **ApplicationContext** and **Bean** in Spring Boot. It is designed to demonstrate how to dynamically select and use payment providers based on user input.
## **Features**
- Modular implementation of multiple payment providers.
- Dynamic selection of payment providers based on user input.
- Demonstrates the power of Spring's `ApplicationContext` for managing beans and dependencies.
## **Technologies Used**
- **Spring Boot**: Framework for building Java-based applications.
- **Java**: Programming language used for the implementation.
- **Maven**: Build automation tool.
## **How It Works**
1. Users make an online purchase and select their preferred payment provider (e.g., Paytm, RozerPay, etc.).
2. The application retrieves the corresponding payment provider bean using `ApplicationContext`.
3. The selected provider processes the payment and displays its name on the console.
## **How to Run**
1. Clone this repository:
```bash
git clone https://github.com/deepakmali-09/springboot-p03.git