aoscici2000
V2EX  ›  Java

eureka server 直接打包成 war 扔到 tomcat 需要怎么设置?

  •  
  •   aoscici2000 · May 24, 2019 · 2668 views
    This topic created in 2593 days ago, the information mentioned may be changed or developed.
    server:
      port: 8761
    
    spring:
      application:
        name: eureka-server
    
    eureka:
      instance:
        hostname: localhost
        prefer-ip-address: true
      client:
        registerWithEureka: false
        fetchRegistry: false
        serviceUrl:
          defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/
    
    

    tomcat 启动后好像也没见报错, 但也没法访问服务

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1353 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 17:03 · PVG 01:03 · LAX 10:03 · JFK 13:03
    ♥ Do have faith in what you're doing.