Working code for the Spring Boot Teaching Materials.
Projects
| Folder | Level | Corresponding Modules |
|---|---|---|
| beginner | Beginner | 1–4 (Intro, Setup, First App, Core Concepts) |
| intermediate | Intermediate | 5–8 (REST, JPA, Security, Configuration) |
| advanced | Advanced | 9–12 (Testing, Actuator, Production, Microservices) |
Running the Code
Each project uses Maven. To run without installing Maven globally:
-
Option A: Generate a new project from start.spring.io (same dependencies as in each
pom.xml), then copy thesrcandpom.xmlfrom the corresponding folder (beginner, intermediate, or advanced). The generated project includes the Maven wrapper (mvnw). -
Option B: If Maven is installed, generate the wrapper from the project directory:
bash mvn wrapper:wrapperThen run:bash ./mvnw spring-boot:run -
Option C: With Maven installed, run directly:
bash mvn spring-boot:run
Quick Start
cd beginner
./mvnw spring-boot:run # or: mvn spring-boot:run
# Open http://localhost:8080/hello
See each project’s README.md for endpoints and details.