Skip to content

/actuator/health returns 404 if no indicator is present #18841

@snicoll

Description

@snicoll

An application with no custom HealthIndicator and management.health.defaults.enabled=false will return a 404. It used to be a 200 in 2.1.x:

HTTP/1.1 200
Content-Type: application/vnd.spring-boot.actuator.v2+json;charset=UTF-8
Date: Sat, 02 Nov 2019 07:06:31 GMT
Transfer-Encoding: chunked

{
    "details": {
        "application": {
            "status": "UP"
        }
    },
    "status": "UP"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions