Printing and PDF export are disabled for this content. View it online at Full Stack Learning Simplified.
Create a Spring Boot Project
The standard way to start is the Spring Initializr β it generates a ready-to-run project with your chosen dependencies.
Using start.spring.io
- Go to start.spring.io (or use your IDE's built-in Initializr).
- Project: Maven; Language: Java; pick a recent Spring Boot version.
- Set group/artifact (e.g.
com.example/demo) and Java version. - Add dependencies β start with Spring Web.
- Generate, unzip, and open the folder in your IDE.
Common starters to add
| Starter | For |
|---|---|
| Spring Web | REST APIs and MVC |
| Spring Data JPA | database access |
| PostgreSQL Driver / H2 | a specific database |
| Spring Security | authentication |
| Validation | request validation |
| Spring Boot Actuator | health checks & metrics |
Running the app
bash
./mvnw spring-boot:run # macOS/Linux (uses the bundled wrapper)
mvnw spring-boot:run # WindowsThe Maven wrapper (mvnw) runs the right Maven version without a separate install. The app starts on http://localhost:8080 by default.
Tip: The generated project already runs β start it before writing any code to confirm your setup works, then build up from there.
Free preview. Sign in and subscribe to unlock all 809 lessons across 25 courses.
Free preview Β· Β© 2026 Full Stack Learning Simplified