
Spring Initializr est un outil qui permet d’amorcer rapidement la création d’applications Web avec Spring Boot : https://start.spring.io/
Cet outil est également utilisable avec curl.
Simple HelloWorld avec Maven :
curl https://start.spring.io/starter.zip \
-d type=maven-project
-d dependencies=web \
-d name=helloworld \
-d artifactId=helloworld \
-o HelloWorld.zip
Plus d’options :
curl https://start.spring.io/starter.zip \
-d type=maven-project \
-d javaVersion=8 \
-d dependencies=web,data-rest \
-d applicationName=TestSpringCLI \
-d description='Exemple de description avec Spring Initialzr CLI' \
-d artifactId=nativeweb \
-d packageName=com.test.CLI \
-d baseDir=testCLI \
-o TestSpringCLI.zip
Et le commande affichant toutes les options :
curl https://start.spring.io
Tout simplement.