1. 程式人生 > >zookeeper:springboot+dubbo配置zk叢集並測試

zookeeper:springboot+dubbo配置zk叢集並測試

1.springboot配置zk叢集

1.1:非主從配置方法

dubbo:
  registry:
    protocol: zookeeper
    address: 12.1.1.69:2181,12.1.1.85:2181,12.1.1.84:2181
    check: false

1.2:主從配置方法

dubbo:
  registry:
    protocol: zookeeper
    address: 12.1.1.69:2181?backup=12.1.1.85:2181,12.1.1.84:2181
    check: false