Replace manual health endpoint with Spring Boot Actuator

Remove the hand-rolled HealthController and use spring-boot-starter-actuator
instead. Only the health endpoint is exposed, with no detail leakage.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-04 02:47:36 +01:00
parent a9802c2881
commit 0c88697b2e
4 changed files with 10 additions and 18 deletions

View File

@@ -24,8 +24,8 @@ class FeteApplicationTest {
@Test
void healthEndpointReturns200() throws Exception {
mockMvc.perform(get("/health"))
mockMvc.perform(get("/actuator/health"))
.andExpect(status().isOk())
.andExpect(jsonPath("$.status").value("ok"));
.andExpect(jsonPath("$.status").value("UP"));
}
}