一直處於離線狀態
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地址不顯示主機名