Create A New Project

Let's begin building our Restaurant Review Platform by creating a new Spring Boot project.

The Spring Initialzr will help us set up a project with all the dependencies we need, saving us time and ensuring we follow best practices from the start.

Using Spring Initialzr

Spring Initialzr is a web-based tool that generates Spring Boot projects with your chosen configuration.

Visit start.spring.io in your web browser.

On the form, select the following options:

  • Project: Maven
  • Language: Java
  • Spring Boot: 3.4.2
  • Packaging: Jar
  • Java: 21

For the project metadata, enter:

  • Group: com.devtiro
  • Artifact: restaurant
  • Name: devtiro
  • Description: Restaurant Review Platform
  • Package name: com.devtiro.restaurant

Adding Dependencies

The dependencies we select will add the required libraries to our project.

Click the "ADD DEPENDENCIES" button and add these dependencies:

  • Spring Web - For building REST APIs
  • Spring Security - For securing our application
  • OAuth2 Resource Server - For Keycloak integration
  • Spring Data Elasticsearch - For search functionality
  • Validation - For input validation
  • Lombok - For reducing boilerplate code

Generating the Project

Once you've selected all the dependencies, click the "GENERATE" button.

This will download a ZIP file containing your project.

Extract the ZIP file to your preferred workspace location.

Summary

  • Created a new Spring Boot project using Spring Initialzr
  • Selected Java 21, Maven, and Jar packaging format
  • Added required dependencies for building a Restaurant Review Platform
  • Generated and downloaded the project
  • Project is ready for development with all necessary dependencies
© 2026 Devtiro Ltd. All rights reserved