Creating a Spring Boot project with Spring Initializer
Spring Initializer
Spring Initializer tool makes it easy for developers to generate an initial project structure without worrying much about the project structure and dependencies.It allows you to create varied range of Spring Boot based applications from a very simple UI. On high level Spring Initializer tools takes care of the following points for Spring based applications.
- Project Structure.
- Dependencies required to start the work.
- Maven or Gradle to build application.
- Initializer will add correct dependencies based on the version.
- Packaging(jar or war).
Initializer view with minimal option to build a spring boot project,lets us discuss the field for basic understanding.
- Project-This gives us the option to select the project as Maven or Gradle based. In this post, we choose Maven. This selection generates a pom.xml file for our project.
- Language-Which programming language to use(we choose java),you have option to select Kotlin or Groovy.
- Spring Boot :Here you can select the Spring Boot version.
- Group-The groupId attribute in Apache Maven, also known as the id of the project’s group.
- Artifact-Name of the project.
- Dependencies-Here you can add the dependencies according to your project like I'm selecting Spring web,refer below snapshot.
Few Advance properties
- Description-Description of project.
- Package name-Root package of the project. If not specified, the value of the Group attribute used.
- Java-Here you can select the java versions which you have installed.
Click on Generate, your Spring boot project will downloaded as a Zip file,Unzip the downloaded zip file and import it into your favorite Eclipse IDE.
Navigate or type in the path of the folder where you extracted the zip file.Once you done Maven would take some time to download all the dependencies and initialize the project.
Comments
Post a Comment