This is a template project for Java 21 projects.
This project is a template for Java 21 projects that includes a Dockerfile, a docker-compose.yml file, and a Spring Boot application with basic controllers, services, and tests.
- Java Development Kit (JDK) version 21
- Docker
Follow these steps to get the project up and running locally:
- Clone the repository
- Start the Docker container by running the following command:
docker compose up -d --build
- Test the API endpoint using any REST client with the following request:
curl --location --request GET 'http://localhost:8080/api/v1/health'
- You can also use the Swagger UI at
http://localhost:8080/api/v1/swagger-ui/index.html
To run the tests for this project, execute the following command:
.\gradlew test
To view the test coverage report, open the index.html
file located inside the build\reports\jacoco\test\html
folder (generated by the previous command).