Prerequisites
Before starting the tutorial, ensure you have the following installed:- JDK 17 or higher
- Maven or Gradle
Setting up your project
- Go to start.spring.io
- Select Maven or Gradle for Project
- Select Java for Language
- Choose the latest stable version of Spring Boot (3.x.x)
- Add the following dependencies:
- Spring Web
- Spring Data JPA
- H2 Database
- Lombok
- Thymeleaf
- Download the project and open it in your IDE.