To create spring boot project in eclipse, we have many different ways.
- Spring initializer. (https://start.spring.io/)
- STS eclipse plugin
- Create a Maven project manually and add all the required dependencies for spring boot starter.
Creating Spring Boot Project with Spring Initializer
To create any bootstrap web application Spring Initializer is very useful and great tool.
Go to https://start.spring.io/.
After generating the project, this will download the project in ZIP format. Unzip this file into a folder and import this project into eclipse.
Click File>>Import>>Existing Maven Projects.
Select the path where downloaded project is extracted.
Once click on Finish button, it will take some time to resolve and download all the required dependencies and initialize the project.
Now, we have successfully created spring boot project.
Creating Spring Boot Project with STS Eclipse Plugin
If spring tool suite is installed in your eclipse, you can directly create spring boot project. You can directly install STS eclipse plugin from eclipse marketplace if not installed.
In eclipse, click on File>>New>>Project>>Spring Starter Project
In next screen, please choose your project detail.
- Name
- Type
- Packaging
- Java Version
- Language
- Group ID
- Artifact ID
- Version
- Description
- Package
In below screen, please choose the dependencies, which you want to add in your project.
Once click on Finish button, it will take some time to resolve and download all the required dependencies and initialize the project.
Creating Maven Spring Boot Project Manually
In eclipse, Click on File>>New>>Project>>Maven Project
Select Create a simple project as showing in below screenshot.
Fill the project details in next screen and click on Finish to create a project successfully.
I hope this guide will help you in creating spring boot project. Comment down below if you have any queries.