An open API service indexing awesome lists of open source software.

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

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.