Spring 初期化 CLI
CLI から spring.start.io の使用を開始する簡単な方法を次に示します.
gradle を使用したシンプルな helloworld Web
curl https://start.spring.io/starter.zip \
-d type=gradle-project
-d dependencies=web \
-d name=helloworld \
-d artifactId=helloworld \
-o helloworld.zip
unzip helloworld.zip
依存関係とその他のオプションの追加
curl https://start.spring.io/starter.zip \
-d type=gradle-project \
-d javaVersion=11 \
-d dependencies=web,native,data-rest \
-d applicationName=NativeWebApp \
-d description='Web app with data rest and Native support' \
-d artifactId=nativeweb \
-d packageName=com.test.web \
-d baseDir=nativeweb \
-o nativeweb.zip
unzip nativeweb.zip
オプションの見つけ方
curl https://start.spring.io
Reference
この問題について(Spring 初期化 CLI), 我々は、より多くの情報をここで見つけました https://dev.to/shinusuresh/spring-initializr-cli-3o7mテキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol