title: Can't have my Microservices register in Eureka
body: <p>I have a Eureka server configured (It's workingas I can connect to it and see Eureka console) but my microservice won't register in it. I get a 403 server error (Forbidden). The authentication configuration in the Microservice trying to register seems OK as if I intentionally set it wrong, I get 401.</p>
  
  <p>My gradle configuration:</p>
  
  <pre><code>buildscript {
      ext {
          springBootVersion = '2.0.5.RELEASE'
          gradleDockerVersion   = '1.2'
      }
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath "io.spring.gradle:dependency-management-plugin:0.5.6.RELEASE"
          classpath("se.transmode.gradle:gradle-docker:${gradleDockerVersion}")
          classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
      }
  }
  ext {
      springCloudVersion = 'Finchley.RELEASE'
  }
  
  dependencyManagement {
      imports {
          mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
          mavenBom("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
          mavenBom 'org.springframework.cloud:spring-cloud-netflix:2.0.1.RELEASE'
      }
  }
  </code></pre>
  
  <p>This is my configuration. I have included it bith in bootstrap.yaml and in the configuration server just to make sure:</p>
  
  <pre><code>eureka:
    client:
      serviceUrl:
        defaultZone: http://myuserid:mypassword@localhost:8761/eureka/
  </code></pre>
  
  <p>But for some reason it's ignored. The root of that property is "eureka", not "spring.eureka..."?</p>
  
  <p>Here is the error log in the Microservice, which seems to be trying localhost and standard port 8080, hence ignoring configuraton above.</p>
  
  <pre><code>2018-09-28 09:31:12.763  INFO 58552 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_MTPMS_WEATHER/localhost:mtpms_weather:8080: registering service...
  2018-09-28 09:31:12.767  INFO 58552 --- [  restartedMain] o.s.c.support.DefaultLifecycleProcessor  : Starting beans in phase 2147483647
  2018-09-28 09:31:12.768  INFO 58552 --- [  restartedMain] d.s.w.p.DocumentationPluginsBootstrapper : Context refreshed
  2018-09-28 09:31:12.803  WARN 58552 --- [nfoReplicator-0] c.n.d.s.t.d.RetryableEurekaHttpClient    : Request execution failure with status code 403; retrying on another server if available
  2018-09-28 09:31:12.808  WARN 58552 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient    : DiscoveryClient_MTPMS_WEATHER/localhost:mtpms_weather:8080 - registration failed Cannot execute request on any known server
  
  com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server
      at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:112) ~[eureka-client-1.9.3.jar:1.9.3]
  </code></pre>