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