title: Spring Boot Admin, client registration results in bad request
body: <p>I am going to register my spring boot application to <code>spring-boot-admin</code> server.</p>
  
  <p>Here is my <code>SpringBootAdminApplication.java</code></p>
  
  <pre><code>@Configuration
  @EnableAutoConfiguration
  @EnableAdminServer
  public class SpringBootAdminApplication {
  
      public static void main(String[] args) {
          SpringApplication.run(SpringBootAdminApplication.class, args);
      }
  }
  </code></pre>
  
  <p>And <code>pom.xml</code>:</p>
  
  <pre><code>&lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;de.codecentric&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-admin-example&lt;/artifactId&gt;
          &lt;version&gt;1.0.5&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>and <code>application.properties</code></p>
  
  <pre><code>server.port = 8080
  </code></pre>
  
  <p>Server is running now:</p>
  
  <p><a href="https://i.stack.imgur.com/fhi7L.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fhi7L.png" alt="enter image description here"></a></p>
  
  <p>Now, in client side:</p>
  
  <p>properties:</p>
  
  <pre><code>spring.boot.admin.url=http://localhost:8080
  info.version=@project.version@
  spring.application.name=rest-module
  </code></pre>
  
  <p>pom.xml:</p>
  
  <pre><code>&lt;dependency&gt;
          &lt;groupId&gt;de.codecentric&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-admin-starter-client&lt;/artifactId&gt;
          &lt;version&gt;1.3.0&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>But, when i run the spring boot from client, i get this error:</p>
  
  <pre><code>Created POST request for "http://localhost:8080/api/applications"
  Setting request Accept header to [application/json, application/json, application/*+json, application/*+json]
  
  Writing [Application [id=null, name=rest-module, managementUrl=http://Hayatloo-PC:8082, healthUrl=http://Hayatloo-PC:8082/health, serviceUrl=http://Hayatloo-PC:8082]] as "application/json" using [org.springframework.http.converter.json.MappingJackson2HttpMessageConverter@1637320b]
   Failed to register application as Application [id=null, name=rest-module, managementUrl=http://Hayatloo-PC:8082, healthUrl=http://Hayatloo-PC:8082/health, serviceUrl=http://Hayatloo-PC:8082] at spring-boot-admin (http://localhost:8080/api/applications): 400 Bad Request
  </code></pre>
  
  <p>Why <code>id=null</code> ?</p>