aoscici2000
V2EX  ›  Java

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

  •  
  •   aoscici2000 · May 24, 2019 · 2631 views
    This topic created in 2571 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   ·   4955 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 09:44 · PVG 17:44 · LAX 02:44 · JFK 05:44
    ♥ Do have faith in what you're doing.