server:
port: 8761
eureka:
instance:
hostname: localhost
client:
registerWithEureka: false #表示自己就是注册中心,不用注册自己
fetchRegistry: false # 表示自己就是注册中心,不用去注册中心获取其他服务的地址
serviceUrl:
defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/
标签:false,server,port,application,注册,eureka,yml
From: https://www.cnblogs.com/gogogofh/p/17097982.html