Skip to content

webdumpy/spring-dependency-injection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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.

About

A simple Spring Framework project demonstrating dependency injection using XML

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages