AI Hints
Home›Spring Boot Tutorial›What You Need, Spring Initializr and The Project Structure
Spring Boot · Lesson 5 of 120

Spring Initializr

Create a project.

⏱ 2 min read▶ Video at 5:34🎓 Free
Watch this lesson in the Spring Boot courseWatch on YouTube ↗Full Spring Boot course

Spring Boot projects usually start from a website called Spring Initializr, at start dot spring dot io. It builds a ready to run project for you.

  • start.spring.io
  • Fill in a form
  • Download a project

The form

Project is the build tool, and we pick Maven. Language is Java. Spring Boot is the version, four point two. Group and artifact name your project, com dot example, and bookshop. And Java is the version you installed, seventeen.

FieldOur choice
ProjectMaven
LanguageJava
Spring Boot4.2.0
Group / Artifactcom.example / bookshop
Java17

Dependencies

Dependencies are extra libraries your project uses. You add them with the Add Dependencies button. For now, we only need Spring Web, for building web endpoints. Later, we'll add more, like Spring Data JPA, Validation, and Security.

keyvalue
Whatextra libraries
NowSpring Web
LaterJPA, Validation, Security
Also laterActuator, H2

From form to running app

Fill in the form, and add Spring Web. Click Generate, and a zip file downloads. Unzip it, and open the folder in your editor. Then run it with the Maven wrapper.

  1. Fill in the form
  2. Add Spring Web
  3. Generate (zip)
  4. Open in your editor
  5. ./mvnw spring-boot:run

Summary

Spring Initializr builds a project from a form. We chose Maven, Java seventeen, and the Spring Web dependency. Next, what's inside the project.

Key takeaways
  • start.spring.io
  • Maven, Java 17
  • Spring Web
Next up: The Project Structure — what is inside