Create Spring Boot Project With Spring Initializer




In this article, we will learn how to create a simple Spring boot project with Spring Initializr.

Spring Initializr is a great tool developed by spring team to quickly bootstrap your Spring Boot projects.

There are many ways to create a Spring Boot application. The simplest way is to use Spring Initializr at http://start.spring.io/, which is an online Spring Boot application generator.

In this article, we will create a simple Spring boot hello world tutorial project using Spring Initializr tool and import in eclipse IDE.

Create Spring Boot Project With Spring initializer

Below gif image gives you step by step process to create a Spring boot project using Spring Initializr.
As shown in the image above, let's create a spring boot project step by step.

Step 1. Launch Spring Initializr using https://start.spring.io link

Step 2. Specify Project Details 

Look at the above diagram, we have specified following details:
  • Generate: Maven Project
  • Language: Java
  • Java Version: 1.8 (Default)
  • Spring Boot: 2.1.4
  • Group: net.javaguides.springboot
  • Artifact: springboot-helloworld-tutorial
  • Name: springboot-helloworld-tutorial
  • Description: Demo project for Spring Boot
  • Package Name : net.javaguides.springboot.springboothelloworldtutorial
  • Packaging: jar (This is the default value)
  • Dependencies: Web, JPA, MySQL
Once, all the details are entered, click on Generate Project button will generate a spring boot project and downloads it. Next, Unzip the downloaded zip file and import it into your favorite IDE.

3. Import project in Eclipse

In Eclipse, Click File -> Import -> Existing Maven Project as shown below.
Navigate or type in the path of the folder where you extracted the zip file to in the next screen.

Once you click Finish, Maven would take some time to download all the dependencies and initialize the project.

Video

This tutorial is explained in the below Youtube Video. Subscribe to my youtube channel to learn more about Spring boot at Java Guides - YouTube Channel.

That’s it. Your first Spring Project is Ready.

Check out complete Spring boot tutorial at Master in Spring Boot Tutorial.

Comments