Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Latest commit

 

History

History
37 lines (22 loc) · 1008 Bytes

How-Spring-Initializr-Work.md

File metadata and controls

37 lines (22 loc) · 1008 Bytes

How Spring Initializr Work

Spring Initializr doc

Spring Initializr Project

Module structure is like this

graph TD
    initializr-metadata --> initializr-generator
    initializr-actuator --> initializr-web
    initializr-generator-spring --> initializr-metadata
    initializr-version-resolver
    initializr-web --> initializr-generator
Loading

Rest API in Spring Initializr Web Module

GET / Accepts: 'text/plain'

Defined in io.spring.initializr.web.controller.CommandLineMetadataController.serviceCapabilitiesText

This is used for commandline tools to provide project information.

For example, if you run curl https://start.spring.io, it will output this.

Currently it supports:

  • curl
  • HTTPie
  • Spring CLI

Output varies based on the tool, and it detects the tool automatically based on User-Agent header.