{"action":"closed","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-commons/issues/4","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-commons/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-commons/issues/4/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-commons/issues/4/events","html_url":"https://github.com/spring-cloud/spring-cloud-commons/issues/4","id":53820279,"number":4,"title":"CommonsClientAutoConfiguration creates DiscoveryClientHealthIndicator even if discovery is disabled","user":{"login":"mdjnewman","id":834173,"avatar_url":"https://avatars.githubusercontent.com/u/834173?v=3","gravatar_id":"","url":"https://api.github.com/users/mdjnewman","html_url":"https://github.com/mdjnewman","followers_url":"https://api.github.com/users/mdjnewman/followers","following_url":"https://api.github.com/users/mdjnewman/following{/other_user}","gists_url":"https://api.github.com/users/mdjnewman/gists{/gist_id}","starred_url":"https://api.github.com/users/mdjnewman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdjnewman/subscriptions","organizations_url":"https://api.github.com/users/mdjnewman/orgs","repos_url":"https://api.github.com/users/mdjnewman/repos","events_url":"https://api.github.com/users/mdjnewman/events{/privacy}","received_events_url":"https://api.github.com/users/mdjnewman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-09T00:36:47Z","updated_at":"2015-01-15T22:14:58Z","closed_at":"2015-01-15T22:14:58Z","body":"In the Spring Boot 1.2.1.RELEASE build combined with `org.springframework.cloud:spring-cloud-starter-hystrix:1.0.0.RC1`, I'm getting an error when hitting the /health endpoint:\r\n\r\n```\r\n2015-01-09 10:00:54.994 ERROR 8936 --- [nio-8080-exec-1] o.s.c.c.d.DiscoveryClientHealthIndicator : Error\r\n\r\norg.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.cloud.client.discovery.DiscoveryClient] is defined\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:371)\r\n```\r\n\r\nThis seems to be caused by `CommonsClientAutoConfiguration` creating a `DiscoveryClientHealthIndicator` even if discovery is disabled.\r\n\r\nThe bootstrap.yml is:\r\n\r\n```\r\nspring:\r\n  cloud:\r\n    config:\r\n      enabled: false\r\n      discovery:\r\n        enabled: false\r\n```"}}