配置类
org.springframework.cloud.zookeeper.discovery.ZookeeperDiscoveryProperties
/** * Use ip address rather than hostname during registration. */ private boolean preferIpAddress = false;
配置:
spring.cloud.zookeeper.discovery.preferIpAddress=true
配置类
org.springframework.cloud.zookeeper.discovery.ZookeeperDiscoveryProperties
/** * Use ip address rather than hostname during registration. */ private boolean preferIpAddress = false;
配置:
spring.cloud.zookeeper.discovery.preferIpAddress=true