LEARNING PATH

Spring Learning Path

Build one working example at a time. Each stage has its own lesson, runnable project and terminology recap.

New to Java web applications? Begin with Servlets and JSPs Foundation. For each stage, use JDK 21+ and Maven 3.9+, open the project’s pom.xml folder, and follow that stage’s connection and port instructions.

Prerequisites and starting a project
Before every stage: use JDK 21+ and Maven 3.9+. Extract the chosen ZIP and open a terminal in the folder containing pom.xml. Set a free port in src/main/resources/application.properties. Run mvn spring-boot:run and keep the terminal open. Stop the previous stage with Ctrl+C before starting another on the same port.
Port setting — complete file example
server.port=8081

If 8081 is occupied, use another available value such as 8082. Save and restart. The browser address must use your chosen port. Stage 5 defaults to 8084, Stage 6 to 8085, and Stage 7 to 8082.

Web application basics

Serve pages, handle requests, read inputs and render templates.

Application structure and database

Connect components, services, repositories, bean configuration and MongoDB.

Complete application

Bring the concepts together in the Todo list used by the later MVC manual.

How Spring supplies objects

Observe injection, component discovery and container interfaces.

Object scopes and lifecycle

Compare object reuse, on-demand resolution and lifecycle callbacks.

Properties and environments

Supply configuration values and select beans by profile.

Inside a web request

Trace HTML, JSON, filters and MVC interceptors.

AOP and proxy boundaries

Add advice, measure methods and observe self-invocation.

MongoDB transactions

Verify atomic writes, rollback rules and transaction propagation.

Go deeper when a term needs explanation

Click an underlined word for a quick explanation in the right column. Open the full concept guide for detailed examples. Each stage ends with links to its relevant concepts.

Open Spring Concepts →
Java 21 · Spring Boot 4.1.1 · Edupoly