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

StarterFor
Spring WebREST APIs and MVC
Spring Data JPAdatabase access
PostgreSQL Driver / H2a specific database
Spring Securityauthentication
Validationrequest validation
Spring Boot Actuatorhealth checks & metrics

Running the app

bash
./mvnw spring-boot:run     # macOS/Linux (uses the bundled wrapper)
mvnw spring-boot:run       # Windows

The 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.
Create a Spring Boot Project β€” Spring Boot | Full Stack Learning Simplified