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