Changing default port of eureka server using spring cloud

后端 未结 3 1989
囚心锁ツ
囚心锁ツ 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:25

    You just need to add eureka.client.service-url.defaultZone=http://localhost:8080/eureka in your server application.yml file and remove quotes around url in both files.

    remove quotes around url (Don't forget it)

提交回复
热议问题