Index

Spring Boot Command Line Interface

open shell
spring shell
help
spring help
spring help init
spring init --list
create project
spring init
spring init -dweb,jpa
spring init -p war
auto unzip
spring init -x
spring init myapp
complete example
spring init war -x -dfreemarker,web

Maven

help
mvn spring-boot:help
running the app
mvn clean spring-boot:run
verify then run the app
mvn clean verify spring-boot:run

Configuration

application.properties:
server.port=8000
setting a spring property on application startup
java -Dget.csv=/get/acc.csv -jar monitoring-1.0.1-SNAPSHOT.jar
Actuator
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId>
    <version>1.3.6.RELEASE</version>
</dependency>
actuator urls
/autoconfig
/beans
/dump
/env
/mappings
/metrics
/shutdown
/trace
enable application shutdown in application.properties
endpoints.shutdown.enabled=true