Run application
mvn spring-boot:run
Run tests
mvn test
May sometimes throw Exception:
"Database is already closed (to disable automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to the db URL)".
I don't know how to fix this: I already applied the proposed solution to the application.properties file.
Build Docker image
docker build -f Dockerfile -t vanad .
Run Spring boot application
docker run -tdi --name=vanad vanad mvn spring-boot:run # Run as daemon
docker logs -f vanad # See Spring application boot
docker stop vanad # Stop container
docker start vanad # Start container
./create.sh http://rest-host:port
e.g.
./create.sh http://node9.codenvy.io:56576
./get.sh http://rest-host:port id-of-entity
e.g.
./get.sh http://node9.codenvy.io:56576 123