English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Springboot Initializr

Spring Initializr provided by Pivotal Web services web-based tools. With the help of Spring Initializr , we can easily generate Spring Boot Project structure. It provides an extensible API for creating projects based on JVM.

It also provides various options represented by metadata models for the project. The metadata model allows us to configure the list of supported dependencies such as JVM and platform versions. It provides metadata in a well-known manner, thus offering necessary assistance to third-party clients.

Spring Initializr modules

Spring Initializr has the following modules:

initializr-actuator: : It provides other information and statistics about project generation. This is an optional module. initializr-bom: : In this module, BOM representingbill of materials. In Spring Boot, BOM is a special POM to control the projectdependenciesofversion. It provides a central location to define and update these versions. It provides flexibility to add dependencies to our modules without worrying about versions.
Outside the software world, BOM is a list of parts, projects, components, and other materials required to create a product. It explainsHow, howandWherecollect required materials.
initializr-docs: : It provides documentation. initializr-generator: : This is a core project generation library. initializr-generator-spring: initializr-generator-test: : It provides a testing infrastructure for project generation. initializr-metadata: : It provides a metadata infrastructure for all aspects of the project. initializr-service-example : It provides a custom instance. initializr-version-resolver: is an optional module used to extract version numbers from any POM. initializr-web : It provides a web endpoint for third-party clients.

supported interfaces

It supports IDE STS, IntelliJ IDEA Ultimate, NetBeans, Eclipse . You can download it from https://github.com/AlexFalappa/nb-springboot. If you are using VSCode, please go to https://github.com/Download the plugin microsoft/vscode-spring-initializr. Use a custom Web UI http://start.spring.io or https://start-scs.cfapps.io. It also supports Spring Boot CLI or cURL or HTTPie of the command line.

The following figure shows the Spring Initializr UI:

Generate project

Before creating a project, we must be UI-friendly. The Spring Initializr UI has the following tags:

Project: it defines the project'stypesWe can create Maven Projector Gradle Project} Maven Project. Language: : Spring Initializr provides three programming languages Java, Kotlin,and Groovy choice. By default, Java is selected. Spring Boot: : We can choose the Spring Boot version. The latest version is 2.2.2 . Project Metadata: : It contains information related to the project, such as Group ,Artifact等。Group represents package name; Artifactrepresentsapplicationname. The default group name is com.example , the default artifact name isDemo. Dependencies: Dependencies are a collection of artifacts that can be added to the project.

There is another Options parts, which include the following fields:

Name: withArtifactsame. Description: In the description field, we can write the project'sDescription. Package Name: It also corresponds toGroupare similar. Packaging: We can choose the project'sPackaging:. We can choose Jar or War . Java : We can choose the one to use JVM version. Throughout this tutorial, we will use Java 8 version.

There is GenerateButton. When we click the button, it starts packaging the project and downloading the one you choose Jar or War File.