Download the spring boot application from the Spring website.
![](https://i1.wp.com/clarifyall.com/wp-content/uploads/2019/07/Spring-Project.png?fit=735%2C330&ssl=1)
Steps to Importing Spring Boot Application :
Step 1 : Open Eclipse and click the File menu option on top and choose Import option.
![](https://i0.wp.com/clarifyall.com/wp-content/uploads/2019/07/image-11.png?resize=482%2C706&ssl=1)
Step 2 : Below screen will be displayed, then choose the Maven –> Existing Maven Project and click Next.
![](https://i0.wp.com/clarifyall.com/wp-content/uploads/2019/07/image-12.png?resize=581%2C599&ssl=1)
Step 3: Choose Root Directory (project downloaded location) and select the project and click the finish.
![](https://i0.wp.com/clarifyall.com/wp-content/uploads/2019/07/image-13.png?resize=687%2C675&ssl=1)
Steps to build the spring boot application :
Step 1 : Right-click on the imported project and choose the Build Path–>Configure Build path.
![](https://i0.wp.com/clarifyall.com/wp-content/uploads/2019/07/image-14.png?resize=633%2C747&ssl=1)
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.
![](https://i0.wp.com/clarifyall.com/wp-content/uploads/2019/07/image-15.png?resize=735%2C431&ssl=1)
Step 3: Right-click on the project and choose Run As–> Maven clean.
![](https://i0.wp.com/clarifyall.com/wp-content/uploads/2019/07/image-16.png?resize=695%2C759&ssl=1)
Step 4: Right-click on the project and choose Run As–> Maven clean.
![](https://i0.wp.com/clarifyall.com/wp-content/uploads/2019/07/image-17.png?resize=735%2C401&ssl=1)
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) .
![](https://i0.wp.com/clarifyall.com/wp-content/uploads/2019/07/image-18.png?resize=587%2C435&ssl=1)
![](https://i0.wp.com/clarifyall.com/wp-content/uploads/2019/07/image-19.png?resize=681%2C504&ssl=1)
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.
![](https://i0.wp.com/clarifyall.com/wp-content/uploads/2019/07/image-20.png?resize=735%2C701&ssl=1)
![](https://i1.wp.com/clarifyall.com/wp-content/uploads/2019/07/image-21.png?fit=735%2C322&ssl=1)
![](https://i0.wp.com/clarifyall.com/wp-content/uploads/2019/07/image-22.png?resize=735%2C305&ssl=1)
How To run Spring Boot Application :
We have two ways to run the Spring boot Application .
- Using Eclipse IDE.
- 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.
![](https://i0.wp.com/clarifyall.com/wp-content/uploads/2019/07/image-24.png?resize=617%2C753&ssl=1)
- Check the check box and select the Eclipse IDE Launcher and click OK button.
![](https://i0.wp.com/clarifyall.com/wp-content/uploads/2019/07/image-25.png?resize=735%2C560&ssl=1)
- Check Eclipse console for Application successfully started message and port number(8080) like as below.
![](https://i0.wp.com/clarifyall.com/wp-content/uploads/2019/07/image-26.png?resize=735%2C373&ssl=1)
- Then launch the application in browser (http://localhost:8080/)
![](https://i2.wp.com/clarifyall.com/wp-content/uploads/2019/07/image-27.png?fit=735%2C381&ssl=1)
2. By Using Command Prompt :
- Open the Command Prompt.
- Chose jar location : cd D:\Services\admin-starter-springboot-master\target.
![](https://i2.wp.com/clarifyall.com/wp-content/uploads/2019/07/image-28.png?fit=735%2C385&ssl=1)
- Run the command like as below $java -jar admin-starter.jar
![](https://i0.wp.com/clarifyall.com/wp-content/uploads/2019/07/image-29.png?fit=735%2C396&ssl=1)
- Then launch the application in browser (http://localhost:8080/)
![](https://i0.wp.com/clarifyall.com/wp-content/uploads/2019/07/image-30.png?fit=735%2C378&ssl=1)