
We may create a spring boot project with the help of spring initializr. In order to do so, we should first import the project into Eclipse. It does not require any manual configuration.
Setting up a Spring Boot environment is easier than setting up any other framework.
Table of Contents
What are the benefits of using Spring Boot Initializr?
The Spring Boot initializer is a basic tool for quickly getting Spring Boot applications up and running.
- For developing Quick Start applications, Spring Initializr provides an extendable API.
- With a few clicks, we can establish an application setup.
- It cuts down on the time it takes to set up an application.
- It boosts productivity.
Tools required for Spring Boot
The following tools are required for Spring Boot:
- Java JDK 8
- Eclipse or STS
Steps of creating Spring Boot project
There are a variety of ways to build a Spring Boot application, but the most simple one is to use the Spring initializr.
Step 1: Generate Spring Boot project using Spring Initializr
The Spring Initializers link is an excellent place to begin. This link can be used to help you prepare for the project by giving relevant information.

Step 2: Download and extract the zip file which is created by Spring Initializr
After generating the project in Step 1, you may download it to your local drive and import it into eclipse in the next step.
Step 3: Import extracted project to eclipse
After using spring initializr to create the project, you can import it into eclipse.

Step 4: Browse maven project.
Configuring and setting up Spring Boot dependencies and Java projects may take a bit of time.

Step 5: Create a class which will be the REST controller
Create a HelloGeek class
package com.geekcer.GeekApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/api")
public class HelloGeek {
@GetMapping("/hello")
public String welcomeGeek() {
return "Hello, Welcome to Geek World!";
}
}

Step 6: Run project as Java Application
Once you’ve created your first Spring Boot application, you can launch it as a Java application.

Step 7: Console output will look like this
When you run the Spring application the console output will look like this.

Step 8: Hit the following url in the browser
http://localhost:8080/api/hello Here 8080 is default port number of Spring Boot embedded Tomcat server.
