How to Create and Setup Spring Boot Project in Eclipse IDE

In this tutorial, you will learn how to quickly create and setup a Spring Boot project in Eclipse IDE. 

YouTube Video

Prerequisites

Make sure that you have installed:
  • Java JDK
  • Eclipse IDE for Enterprise Java and Web Developer
Just follow below two steps to quickly create and setup a Spring Boot project in Eclipse IDE.

Step 1. Create a Spring boot project using spring initializr 

Let's create a Spring boot project using https://start.spring.io/.

Refer to the below screenshot to enter the Spring boot project details:


Click on Generate button to download the Spring boot project as a zip file on your file system. Next, unzip the zip file. In the next step, we will import this Spring boot project in Eclipse IDE.

Step 2. import and setup the Spring boot project in Eclipse IDE

Go to the Eclipse IDE for Enterprise Java and Web Developer > File > Import as shown in the below image.


Search “maven” and choose Existing Maven Project and click on the Next button as shown in the below image.

Now click on the Browse button and select the extracted zip file that has been generated.

And at last click on the Finish button and we are done creating the Spring Boot project


Explore the main entry point class of the Spring boot application:

Related Posts


Comments