Saturday, October 3, 2020

Java | Technology | How to Series !!!

How to create first Spring Boot application...

Step 1 : Open eclipse and provide a workspace path. For those who are new to eclipse, workspace path is physical folder on computer where your project stays. After launching eclipse, navigate to File menu and create New project.
While creating new project search for Spring Starter Project on search jump box. From the results, select "Spring Starter Project" and click on Next.



Step 2 : Fill all the details of your application, like Name, Group, etc. These will be auto populated as well, so if you want to change them, you can, or else just click Next.



Step 3 : Next window provide us feature to add required dependencies to our project. Since its our first application, we would not be selecting any dependency and directly click Next followed by Finish.
If you like you can select any dependency on which you want to create project.




Step 4 : Above steps will create a Spring Boot started project, please go ahead and have a look over pom.xml file as shown below. Check, required dependencies for Spring Boot are automatically referenced here !!



Step 5 : Navigate to Java file "FirstSpringBootApplication.java" file. This is the main class to run our application. Run this file as shown below.



Step 6 : Congratulations your first basic Spring Boot application is up and running




#Spring #SpringBoot #Eclipse #SpringLearning

No comments:

Post a Comment