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
BeanFactory
andApplicationContext
- 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