A basic Spring Framework project demonstrating dependency injection using XML configuration.
This project includes:
- A
Devclass that depends on aLaptopclass - Spring XML configuration (
spring.xml) for wiring the beans - Demonstrates constructor and setter injection
- Java
- Spring Framework (Core)
- Spring boot
- IntelliJ IDEA
- Maven
- Open the project in IntelliJ IDEA.
- Ensure you have Java and Maven configured.
- Run
App.java.
Expected output:
Laptop Constructor
Dev 1 Constructor
Dev Constructor
First project
- Add unit tests
- Use annotation-based Spring configuration
- Add real services and interactions
This project is for educational/demo purposes only.