Make a Basic Spring Boot Project
Hello All, Today we will create a new Spring boot project from the scratch. It will be a bare minimum possible project. We will add the minimum dependency in the project.
We will use Intellij as an IDE.
First we will go to below link:
https://start.spring.io/
You can fill the Group, Artifact, Name, Description of the project and packaging.
It is shown in the below image as well.
After entering the above details, you will click on 'Generate' button. It will save the project on your local system.
Now, import the project in Intellij IDE.
After importing it will be like below:
Congratulations!! you have made your first very basic and simplest possible spring boot project.
Now, we will run this project.
Go to follwoing path in the project:
src -> main -> java -> com -> example -> learningdemo -> LearningdemoApplication.java
Now, click on the run icon and click on the first option to run the main method of LearningdemoApplication class.
It is shown in follwing snap:
Now, you will see the output of the project like below;
Congratulations Again !! you have run the very basic and simplest spring boot project.
No comments:
Post a Comment