These are chat archives for spring-cloud/spring-cloud

4th
May 2017
Ziemowit
@Ziemowit
May 04 2017 13:22

Hi guys!

Do I need to do anything besides below steps to change DEFAULT PORT for Eureka?:

  1. On server
    eureka:
     client:
       register-with-eureka: false
       fetch-registry: false
    server.port: 9000
  2. On client
    eureka:
     client:
         eureka-server-port: 9000

When I change it from default 8761 it does not work. Have feeling that change wrong property or have changed too less

this is how you change the client side
Ziemowit
@Ziemowit
May 04 2017 13:24
Spring Boot = 1.5.2.RELEASE
Spring Cloud = Dalston.RELEASE
Ziemowit
@Ziemowit
May 04 2017 13:33

Ahhh so eureka client:

eureka:
  client:
    serviceUrl:
      defaultZone: http://localhost:8120/eureka/

Then eureka server:

eureka:
  client:
    register-with-eureka: false
    fetch-registry: false
    serviceUrl:
      defaultZone: http://localhost:8120/eureka/
server.port: 8120

Now works. Thank you.