Commit 45c02fdb authored by Smitha Manjunath's avatar Smitha Manjunath
Browse files

patch to conditionally enable this bean.

parent f4e9958c
Pipeline #53683 failed with stage
in 11 seconds
......@@ -23,6 +23,7 @@ import org.springframework.boot.actuate.health.HealthContributorRegistry;
import org.springframework.boot.actuate.health.HealthEndpointGroups;
import org.springframework.boot.actuate.health.HealthEndpointWebExtension;
import org.springframework.boot.actuate.health.Status;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
import java.util.Map;
......@@ -32,6 +33,7 @@ import java.util.Map;
* All services can pick up this class from core-lib-azure from the usual dependency that’s added.
*/
@Configuration
@ConditionalOnProperty(value = "health.endpoint.enabled", havingValue = "true", matchIfMissing = false)
public class AzureHealthEndpointWebExtension extends HealthEndpointWebExtension {
private static final String LOGGER_NAME = AzureHealthEndpointWebExtension.class.getName();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment