0

I am trying to run a Spring boot application which is OpenAPI Generated. I have set the following configurations in my application.yml

# Actuator Configuration

management:
  endpoints:
    web:
      exposure:
        include: "*"
  endpoint:
    health:
      enabled: true
  health:
    defaults:
      enabled: false
    refresh:
      enabled: false
    db:
      enabled: false
    diskspace:
      enabled: false
    vault:
      enabled: false      
health:
  config:
    enabled: false

But when I run the endpoint /actuator/health, I am getting the following response:

{
"description": "Discovery Client not initialized",
"status": "UNKNOWN"
}

NOTE:

Spring Boot Version: 2.2.1.RELEASE

Ayman Patel
  • 564
  • 2
  • 8
  • 23

0 Answers0