This repo is forked from https://github.com/HechengLi/Docker_SpringBoot_Tomcat_MySQL_Demo. Thanks to HechengLi for the inital work of setting up the Tomcat/Springboot/Java demo that this is built on top of.
You will need:
git clone https://github.com/joe-elliott/tempo-springboot-example
docker-compose up
(add -d if you want it to run in background)
curl http://localhost:8080/TianMiao/api/users
curl -X POST -H 'Content-Type: application/json' -d '{"username": "test"}' http://localhost:8080/TianMiao/api/users
curl http://localhost:8080/TianMiao/api/users/1
curl -X PUT -H 'Content-Type: application/json' -d '{"username": "newUser"}' http://localhost:8080/TianMiao/api/notes/