To access that example on GitHub, you need to switch to the config_with_discovery branch. Here's the link:
https://github.com/piomin/sample-spring-cloud-netflix/tree/config_with_discovery.
The first change is related to the sample-service-discovery module. We don’t need the spring-cloud-starter-config dependency there. The simple configuration is not fetched from remote property sources, but set in bootstrap.yml. In contrast to the previous example, we launch a single standalone Eureka instance in order to simplify the exercise:
spring: application: name: discovery-service server: port: ${PORT:8761} eureka: client: registerWithEureka: false fetchRegistry: false
By contrast, we should include the spring-cloud-starter-eureka ...