-
Couldn't load subscription status.
- Fork 41.6k
Description
Hello, I've tested the following issue with both Spring Boot 2.3.0 and 2.3.1
I am trying to override the default health check behaviour by setting it to check the DB connection only, but when I include those configuration parameters I get a 404 from the probing endpoints locally.
For example, with the following configuration:
management:
server:
port: 10102
health:
probes:
enabled: true
defaults:
enabled: false
db:
enabled: true
I cannot access http://localhost:10102/actuator/health/liveness or http://localhost:10102/actuator/health/readiness, both return a 404. However, the response from http://localhost:10102/actuator/health lists both liveness and readiness as groups.
If I remove the default override, like this:
management:
server:
port: 10102
health:
probes:
enabled: true
Then both endpoints work fine.
I am not getting any errors or exceptions when running the application.