Not able to register a service as Eureka Client
<p>I'm trying to register a Microservice as Eureka Client in order to discover other Microservices, however, I follow the tutorial but nothing shows up in the Eureka Server. Below are code snippets:</p>

<ol>
<li><p>My <code>demo</code> application: a spring boot application running on <code>localhost:9001</code>, I want it become a Eureka Client, i.e., register itself as an instance and meanwhile has ability to discover other instances (I used the generic <code>@EnableDiscoveryClient</code>annotation and Spring Netflix Eureka is on the classpath):</p>

<pre><code>@RestController
@SpringBootApplication
@EnableDiscoveryClient
public class DemoApplication {

@RequestMapping("/") 
String home() {
    return "This is a Demo project";
}
public static void main(String[] args) {
    SpringApplication.run(DemoApplication.class, args);  
}
}
</code></pre></li>
<li><p>application.yml:</p>

<pre><code>server:
  port: 9001

eureka:
  client:
    serviceUrl:
        defaultZone: http://localhost:8761/eureka/
</code></pre></li>
</ol>

<p>The Eureka Server should be no problem since I have another Miscroservice running on <code>localhost:8080</code> is successfully registered in the server. Just in case here is the application.yml for the Eureka Server:</p>

<pre><code>server:
  port: 8761

eureka:
  instance:
    hostname: localhost
  client:
    registerWithEureka: false
    fetchRegistry: false
    serviceUrl:
      defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/
</code></pre>

<p>Anyone see any problems here?</p>