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地址不显示主机名

 

posted @ 2021-10-09 10:16  VipSoft  阅读(1635)  评论(0编辑  收藏  举报