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

Java | Technology | How to Series !!!

How to install Spring Tool Suite pluggin on Eclipse...

Spring has become most favourable and widely used Java based framework these days. To develop quick Spring Boot application using Eclipse, we can incorporate Spring Tool Suite pluggin.
Follow below given steps for the same and happy learning.

Step 1 : Navigate to Eclipse Marketplace from Help menu in Eclipse and Search for Spring Tool Suite.

Step 2 : Install the first result displayed in above screenshot, and then follow below given screenshots.



Post Finish, plugging will be downloaded and will get associated with eclipse. To bring these changes in effect, you might need to restart the eclipse, hence save all your work and restart the eclipse.

I will publish seperately how to use this pluggin to start developing Spring Boot applications.



#Spring , #SpringBoot , #Eclipse , #SpringToolSuite