Skip to content

Instantly share code, notes, and snippets.

@erikyuzwa
Last active December 8, 2019 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erikyuzwa/cdcaf0be0850ba3185b5ce7683d5157b to your computer and use it in GitHub Desktop.
Save erikyuzwa/cdcaf0be0850ba3185b5ce7683d5157b to your computer and use it in GitHub Desktop.
java spring project one liner from curl

setup

one liner for generating a new spring-boot project in the CURRENT folder

  • dependencies: devtools,web,data-jpa,security,session,h2,thymeleaf
  • project type: maven
  • packaging : war
curl https://start.spring.io/starter.zip -d packaging=war -d dependencies=devtools,web,data-jpa,security,session,h2,thymeleaf -d type=maven-project -d baseDir=. | tar -xzvf -

building

mvn clean && mvn package

startup

mvn spring-boot:run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment