Code Monkey home page Code Monkey logo

spring-boot-webapp's Introduction

Step 0

  1. git clone https://github.com/m41highway/spring-boot-webapp.git
  2. change directory to /spring-boot-webapp, execute "mvn package"
  3. execute "java -jar target/basic-spring-boot-webapp-0.1.0.jar"
  4. open another console and execute "curl localhost:8080"

Step 1 add a new test class for testing the end point,

  1. execute "mvn test" to verify the unit test result

Step 2 add a new integration test

  1. run as java program to invoke the test

Step 3 enable the starter actuator

  1. add starter actuator dependant in pom
  2. start the application with command "mvn package && java -jar target/basic-spring-boot-webapp-0.1.0.jar"
  3. 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)
  4. add git ignore by type "touch .gitignore" in the root directory of the git repository

Step 4

Step 5

Step 6

  1. add application.yml config file
  2. add dependency snakeyaml in pom
  3. add a Java Config Class "SystemConfig"
  4. read the system config property in /hello api

spring-boot-webapp's People

Contributors

m41highway avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.