Welcome to my Spring Framework learning journey!
This repository documents my hands-on practice and notes as I explore and implement key Spring concepts. Iβve built this tutorial from scratch by combining lessons from trusted sources like GeeksforGeeks and my own interpretations to truly understand the Spring ecosystem.
This project focuses on mastering the Spring Core module with real code examples and clear structure. Topics covered include:
-
π§ Beans & IOC Containers
- Understanding
BeanFactoryandApplicationContext - Managing bean lifecycles and scope (
singleton,prototype, etc.)
- Understanding
-
π§© Dependency Injection (DI)
- Constructor Injection
- Setter Injection
- XML and Annotation-based configurations
-
π§ Spring Expression Language (SpEL)
- Dynamically injecting values into beans using expressions
-
π‘ Common Spring Annotations
@Component,@Service,@Repository,@Controller@Autowired,@Qualifier,@Value, and more
-
π§ββοΈ Annotation vs XML Config
- Legacy XML-based bean configuration vs modern annotation-driven development
spring-tutorial/ # actual project flow in every springboot application.
βββ src/
β βββ main/
β β βββ java/
β β β βββ com/ganesh/spring/ # Core Java logic
β β βββ resources/
β β βββ beans.xml # XML configs
βββ pom.xml # Maven build file
βββ README.md
- Java 8+
- Maven
- IDE (IntelliJ IDEA / Eclipse / VS Code)
-
Clone the repository:
git clone https://github.com/yourusername/spring-tutorial.git cd spring-tutorial -
Compile and run:
mvn clean install validate test package- or you can use maven wrapper.
./mvnw clean install