Skip to content

This project is a collection of Spring Core and Spring Boot examples created to help beginners understand important concepts like Dependency Injection, Autowiring, Bean Configuration, and Loose Coupling. It provides simple and practical examples that make it easier to learn how Spring works in real applications.

Notifications You must be signed in to change notification settings

kajalshakya29/Spring-Boot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌱 Spring Boot Examples

This repository contains simple examples demonstrating Spring Boot concepts such as Bean, Constructor Injection, Setter Injection, Autowiring, Component Scanning, and Loose Coupling.


πŸ“‚ Project Structure

SpringExample/
 β”œβ”€β”€ src/main/java/
 β”‚   β”œβ”€β”€ car/example/bean/              # Bean example
 β”‚   β”œβ”€β”€ car/example/constructor/       # Constructor injection
 β”‚   β”œβ”€β”€ car/example/setter/            # Setter injection
 β”‚   β”œβ”€β”€ com/example/autowire/          # Autowiring examples
 β”‚   β”œβ”€β”€ com/example/autowired/anno/    # Annotation-based autowiring
 β”‚   β”œβ”€β”€ com/example/componentscan/anno # Component scan demo
 β”‚   └── com/loose/coupling/            # Loose coupling example
 └── pom.xml                            # Maven configuration

πŸš€ Running the Project Build the project using Maven:

mvn clean install

Run examples (e.g., App.java) from your IDE or via Maven:

mvn spring-boot:run

πŸ‘©β€πŸ’» Author Kajal Shakya 🌐 GitHub: kajalshakya29 πŸ’Ό Aspiring Java Backend Developer | Skilled in Spring Boot & REST APIs | DSA Enthusiast

About

This project is a collection of Spring Core and Spring Boot examples created to help beginners understand important concepts like Dependency Injection, Autowiring, Bean Configuration, and Loose Coupling. It provides simple and practical examples that make it easier to learn how Spring works in real applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages