Spring Boot Application Importing, Build, Running in Step By Step


Download the spring boot application from the Spring website.

Steps to Importing Spring Boot Application :

Step 1 : Open Eclipse and click the File menu option on top and choose Import option.

Step 2 : Below screen will be displayed, then choose the Maven –> Existing Maven Project and click Next.

Step 3: Choose Root Directory (project downloaded location) and select the project and click the finish.

Steps to build the spring boot application :

Step 1 : Right-click on the imported project and choose the Build Path–>Configure Build path.

Step 2: Check the Java Build Path and Java Compiler in the opened window, make sure that the application should be pointing to Java 8.

Step 3: Right-click on the project and choose Run As–> Maven clean.

Step 4: Right-click on the project and choose Run As–> Maven clean.

Step 5: Then choose the Project Menu –> Clean option and select your Spring boot application then click the clean button like as shown below(it will clean your project and it will generate the class files) .

Step 6: Right-click on the project and choose Run As–> Maven Install, it will download the dependencies from net automatically and it will create the jar.

How To run Spring Boot Application :

We have two ways to run the Spring boot Application .

  1. Using Eclipse IDE.
  2. Using Command Prompt.

1.By Using Eclipse IDE:

  • Right-click on Spring boot Application main file (Default file SpringBootApplication.java) and choose Run As–> Java Application.
  • Check the check box and select the Eclipse IDE Launcher and click OK button.
  • Check Eclipse console for Application successfully started message and port number(8080) like as below.
  • Then launch the application in browser (http://localhost:8080/)

2. By Using Command Prompt :

  • Open the Command Prompt.
  • Chose jar location : cd D:\Services\admin-starter-springboot-master\target.
  • Run the command like as below $java -jar admin-starter.jar
  • Then launch the application in browser (http://localhost:8080/)

About Manohar

I, Manohar am the founder and chief editor of ClarifyAll.com. I am working in an IT professional.

View all posts by Manohar →

Leave a Reply