3 Ways to Create Spring Boot Project in Eclipse

To create spring boot project in eclipse, we have many different ways.

  1. Spring initializer. (https://start.spring.io/)
  2. STS eclipse plugin
  3. Create a Maven project manually and add all the required dependencies for spring boot starter.

Creating Spring Boot Project with Spring Initializer

To create any bootstrap web application Spring Initializer is very useful and great tool.

Go to https://start.spring.io/.

After generating the project, this will download the project in ZIP format. Unzip this file into a folder and import this project into eclipse.

Spring Initializer 1

Click File>>Import>>Existing Maven Projects.

Spring Initializer 2

Select the path where downloaded project is extracted.

Spring Initializer 3

Once click on Finish button, it will take some time to resolve and download all the required dependencies and initialize the project.

Now, we have successfully created spring boot project.

Creating Spring Boot Project with STS Eclipse Plugin

If spring tool suite is installed in your eclipse, you can directly create spring boot project. You can directly install STS eclipse plugin from eclipse marketplace if not installed.

In eclipse, click on File>>New>>Project>>Spring Starter Project

In next screen, please choose your project detail.

  • Name
  • Type
  • Packaging
  • Java Version
  • Language
  • Group ID
  • Artifact ID
  • Version
  • Description
  • Package

STS Eclipse Plugin 1

In below screen, please choose the dependencies, which you want to add in your project.

STS Eclipse Plugin 2

Once click on Finish button, it will take some time to resolve and download all the required dependencies and initialize the project.

Creating Maven Spring Boot Project Manually

In eclipse, Click on File>>New>>Project>>Maven Project

Creating Maven Spring Boot Project Manually 1

Select Create a simple project as showing in below screenshot.

Creating Maven Spring Boot Project Manually 2

Fill the project details in next screen and click on Finish to create a project successfully.

I hope this guide will help you in creating spring boot project. Comment down below if you have any queries.

Leave a Comment

Your email address will not be published. Required fields are marked *