Changing default port of eureka server using spring cloud

后端 未结 3 1987
囚心锁ツ
囚心锁ツ 2021-01-05 03:26

I got to spring-boot application, an eureka server and an eureka client.

Here is my server configuration

server:
  port: 8761

spring:
  application:         


        
3条回答
  •  清酒与你
    2021-01-05 04:15

    Yep. as per Shchipunov comment the below properties do the job 1-eureka.instance.hostname=localhost (eureka server) 2-eureka.client.serviceUrl.defaultZone (client project)

提交回复
热议问题