Step 0
- git clone https://github.com/m41highway/spring-boot-webapp.git
- change directory to /spring-boot-webapp, execute "mvn package"
- execute "java -jar target/basic-spring-boot-webapp-0.1.0.jar"
- open another console and execute "curl localhost:8080"
Step 1 add a new test class for testing the end point,
- execute "mvn test" to verify the unit test result
Step 2 add a new integration test
- run as java program to invoke the test
Step 3 enable the starter actuator
- add starter actuator dependant in pom
- start the application with command "mvn package && java -jar target/basic-spring-boot-webapp-0.1.0.jar"
- visit the non-functional api by "curl localhost:8080/xxx" (http://docs.spring.io/spring-boot/docs/1.3.2.RELEASE/reference/htmlsingle/#production-ready-endpoints)
- add git ignore by type "touch .gitignore" in the root directory of the git repository
Step 4
Step 5
Step 6
- add application.yml config file
- add dependency snakeyaml in pom
- add a Java Config Class "SystemConfig"
- read the system config property in /hello api