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).
lets look how to start a Spring Initializer interface,Go to http://start.spring.io/ you can view this snapshot refer below.

Initializer view with minimal option to build a spring boot project,lets us discuss the field for basic understanding.
  1. 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.
  2. Language-Which programming language to use(we choose java),you have option to select  Kotlin or Groovy.
  3. Spring Boot :Here you can select the Spring Boot version.
  4. Group-The groupId attribute in Apache Maven, also known as the id of the project’s group.
  5. Artifact-Name of the project.
  6. 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

Popular posts from this blog

System Requirements For Spring Boot

Creating Simple Spring Boot Application Using STS In Eclipse