Browse Source

enabling health check with actuator /health

master
art.dambrine 3 years ago
parent
commit
1dd6291087
  1. 2
      TODO.md
  2. 7
      src/main/resources/application.properties

2
TODO.md

@ -22,7 +22,7 @@ Date : 23-24 nov 2021
- [x] 5. The application can run with an embedded in-memory database - [x] 5. The application can run with an embedded in-memory database
- [ ] 6. The application will have a health check endpoint - [x] 6. The application will have a health check endpoint
- [ ] 7. The application will have suitable functional tests, checking real http functionality - [ ] 7. The application will have suitable functional tests, checking real http functionality

7
src/main/resources/application.properties

@ -18,4 +18,9 @@ spring.h2.console.enabled=true
# Custom H2 Console URL (optional) # Custom H2 Console URL (optional)
spring.h2.console.path=/h2 spring.h2.console.path=/h2
# Avoid hibernate initialization # Avoid hibernate initialization
spring.jpa.hibernate.ddl-auto=none spring.jpa.hibernate.ddl-auto=none
# Actuator detailed health check available at /health
management.endpoints.web.base-path=/
management.endpoint.health.show-details=always
management.endpoint.health.enabled=true
Loading…
Cancel
Save