Spring Boot Admin 離線實例


一直處於離線狀態

 

 

 

 

spring.boot.admin.client.instance.prefer-ip

Use the ip-address rather then the hostname in the guessed urls. If server.address / management.address is set, it get used. Otherwise the IP address returned from InetAddress.getLocalHost() gets used. 

 (是否使用注冊的ip地址來取代其他設置url中hostname的值,默認false,ip地址值是InetAddress.getLocalHost(),即主機名)

 

spring:
  boot:
    admin:
      client:
        url: http://192.168.0.95:22589   #這里配置admin server 的地址
        instance:
          name: VipSoft Api Dev
          service-url: http://192.168.0.66:22586 # 對於IP 映射或 Docker 很方便
          prefer-ip: true #true 注冊時 admin 中顯示IP地址不顯示主機名

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM