Skip to content

Instantly share code, notes, and snippets.

@davizalpe
Created January 29, 2017 18:47
Show Gist options
  • Save davizalpe/10dd941437c5eecb2f9485a9ea666675 to your computer and use it in GitHub Desktop.
Save davizalpe/10dd941437c5eecb2f9485a9ea666675 to your computer and use it in GitHub Desktop.
Howto Spring Boot CLI

Create a spring boot from console with spring-cli command line:

Spring-cli

sudo apt-get install gvm gvm install gradle grails groovy springboot . /home/david/.gvm/springboot/1.2.3.RELEASE/bin/

spring $ init -l $ init -d ws,web,velocity,social-twitter,social-facebook,security,mysql,mobile,mail,jersey,hateoas,data-rest,data-jpa,cloud-oauth2,aop,actuator

Or create it from Spring Tool Suite (tuned version of Eclipse IDE): https://spring.io/tools

File -> Import -> Spring -> Spring Getting Starter Content -> Select an example from Spring Boot.

Or create a new project with STS clicking in File -> New Project -> Project... -> Spring -> "Spring Starter Project"

Select app name, type of project, java version (1.8) and dependencies:

Examples:

https://github.com/spring-projects/spring-boot https://github.com/joshlong/the-spring-rest-stack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment