Skip to content

A simple Spring Core project demonstrating Dependency Injection (DI) techniques.

Notifications You must be signed in to change notification settings

TheRJHub/SpringCore_DI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple Spring Core project demonstrating Dependency Injection (DI) techniques, including:

Field Injection – Inject dependencies directly into fields using @Autowired. Setter Injection – Inject dependencies through setter methods using @Autowired. Constructor Injection – Inject dependencies via constructors using @Autowired.

This project includes example beans like Car and Engine to illustrate how Spring manages object dependencies.

✅ Technologies used: Spring Core, Spring Boot, Lombok

📌 Key features:

--> Automatic bean detection using @Component --> Bean retrieval from the Spring ApplicationContext --> Demonstrates best practices for dependency injection --> Manual and automated value assignment (via setters or properties)

About

A simple Spring Core project demonstrating Dependency Injection (DI) techniques.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages