Repository: jhipster/jhipster-lite (java)

Issue:
Endpoint /management/health is not exposed
It seems thats https://github.com/jhipster/jhipster-lite/pull/12648 breaks the call to /management/health (in Angular app)

![Image](https://github.com/user-attachments/assets/6bccf797-b154-421f-acd4-29aa3135f54f)

Pull request description:
Fix: Endpoint /management/health is not exposed
Fix #12850 

Patch:
diff --git a/src/main/java/tech/jhipster/lite/generator/server/springboot/technicaltools/actuator/domain/SpringBootActuatorModuleFactory.java b/src/main/java/tech/jhipster/lite/generator/server/springboot/technicaltools/actuator/domain/SpringBootActuatorModuleFactory.java
index 11e02cafd..b74bacc22 100644
--- a/src/main/java/tech/jhipster/lite/generator/server/springboot/technicaltools/actuator/domain/SpringBootActuatorModuleFactory.java
+++ b/src/main/java/tech/jhipster/lite/generator/server/springboot/technicaltools/actuator/domain/SpringBootActuatorModuleFactory.java
@@ -31,6 +31,7 @@ public class SpringBootActuatorModuleFactory {
         )
         .set(propertyKey("management.endpoint.health.probes.enabled"), propertyValue(true))
         .set(propertyKey("management.endpoint.health.show-details"), propertyValue("always"))
+        .set(propertyKey("management.endpoint.health.access"), propertyValue("read-only"))
         .set(propertyKey("management.endpoints.access.default"), propertyValue("none"))
         .set(propertyKey("management.endpoints.jmx.exposure.exclude"), propertyValue("*"))
         .and()


Test patch:
diff --git a/src/test/java/tech/jhipster/lite/generator/server/springboot/technicaltools/actuator/domain/SpringBootActuatorModuleFactoryTest.java b/src/test/java/tech/jhipster/lite/generator/server/springboot/technicaltools/actuator/domain/SpringBootActuatorModuleFactoryTest.java
index a60b184e4..0bc4d0e40 100644
--- a/src/test/java/tech/jhipster/lite/generator/server/springboot/technicaltools/actuator/domain/SpringBootActuatorModuleFactoryTest.java
+++ b/src/test/java/tech/jhipster/lite/generator/server/springboot/technicaltools/actuator/domain/SpringBootActuatorModuleFactoryTest.java
@@ -34,6 +34,7 @@ class SpringBootActuatorModuleFactoryTest {
         management:
           endpoint:
             health:
+              access: read-only
               probes:
                 enabled: true
               show-details: always