首页 > 其他分享 >application.yml

application.yml

时间:2023-02-07 12:34:50浏览次数:31  
标签:false server port application 注册 eureka yml

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

相关文章