From 00152f704061326908d069c0c8b177bf2ae38145 Mon Sep 17 00:00:00 2001 From: Abdellatif Kebraoui <Kebraoui.abdellatif@gmail.com> Date: Sat, 29 Mar 2025 11:36:17 +0100 Subject: [PATCH] [FEAT] add springdoc-openapi dependency and expose management endpoints in application.yml --- pom.xml | 6 +++++- src/main/resources/application.yml | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index d1a4bf6..81c601a 100644 --- a/pom.xml +++ b/pom.xml @@ -70,7 +70,11 @@ <artifactId>mysql-connector-java</artifactId> <version>8.0.33</version> </dependency> - + <dependency> + <groupId>org.springdoc</groupId> + <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId> + <version>2.6.0</version> + </dependency> <!-- H2 Database for testing --> <dependency> <groupId>com.h2database</groupId> diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 994d8e4..efa8e1a 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -29,3 +29,8 @@ logging: hibernate: SQL: DEBUG # Affiche les requĂȘtes SQL si nĂ©cessaire +management: + endpoints: + web: + exposure: + include: env,metrics,health \ No newline at end of file -- GitLab