- PostgreSQL 14
- IDE
- JDK 8
- Maven 3.*
- download/clone the project
- run docker-compose up postgres
- connect to the database (demo_rest_jersey/demo_rest_jersey)
- import in PostgreSQL the self-contained file that comes with the project - demo-rest-jersey-spring/src/main/resources/input_data/DumpRESTdemoDB.sql
- change to the root folder of the project and execute the following maven command
mvn clean install jetty:run -Djetty.port=8888 -DskipTests=true- now the REST api is up and running with Jetty on
localhost:8888
Run the following maven command on the console in the root directory of the project
mvn clean install verify -Djetty.port=8888Tutorial – REST API design and implementation in Java with Jersey and Spring - complete explanation of this implementation.
Thanks to grafana blog, we can launch a complete observability stack : https://grafana.com/blog/2025/07/08/observability-in-under-5-seconds-reflecting-on-a-year-of-grafana/otel-lgtm/
run the mvn-otel.sh script to startup the observability stack.
https://opentelemetry.io/docs/zero-code/java/agent/getting-started/
https://opentelemetry.io/docs/zero-code/java/agent/annotations/