https://github.com/webdumpy/spring-dependency-injection
A simple Spring Framework project demonstrating dependency injection using XML
https://github.com/webdumpy/spring-dependency-injection
java maven spri spring
Last synced: 3 months ago
JSON representation
A simple Spring Framework project demonstrating dependency injection using XML
- Host: GitHub
- URL: https://github.com/webdumpy/spring-dependency-injection
- Owner: webdumpy
- Created: 2025-06-12T20:18:09.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-14T07:34:54.000Z (about 1 year ago)
- Last Synced: 2025-06-14T08:26:51.513Z (about 1 year ago)
- Topics: java, maven, spri, spring
- Language: Java
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spring-dependency-injection
# DemoSpring
A basic Spring Framework project demonstrating dependency injection using XML configuration.
## ๐ก Overview
This project includes:
- A `Dev` class that depends on a `Laptop` class
- Spring XML configuration (`spring.xml`) for wiring the beans
- Demonstrates constructor and setter injection
## ๐ Technologies Used
- Java
- Spring Framework (Core)
- Spring boot
- IntelliJ IDEA
- Maven
## ๐ How to Run
1. Open the project in IntelliJ IDEA.
2. Ensure you have Java and Maven configured.
3. Run `App.java`.
Expected output:
```
Laptop Constructor
Dev 1 Constructor
Dev Constructor
First project
```
## ๐งช Future Improvements
- Add unit tests
- Use annotation-based Spring configuration
- Add real services and interactions
## ๐ License
This project is for educational/demo purposes only.