mvn clean install
Follow:
Firstly, execute Build step
docker-compose build
docker-compose down
docker-compose up -d
~$ docker exec -it withlombok /bin/sh
~$ docker exec -it withoutlombok /bin/sh
~$docker logs withlombok -f
~$docker logs withoutlombok -f
docker network inspect lombok_default
learn the IPs from "container IPs" step. Replace the IP of the withlombok or withoutlombok with IP that is in following command's URL
- list users
curl -H "Content-Type: application/json" -X GET http://172.21.0.2:8080/user/list
- put user
curl -H "Content-Type: application/json" -X PUT http://172.21.0.2:8080/user/ -d '
{"id":1254265746892828672,"name":"sample name"}
'
- Test file names should end with "Test" not "Tests".
Should be ApplicationTest.java, not ApplicationTests.java