The Dubbo framework also provides default implementations for configuration centers such as etcd and consul.
The Etcd configuration center is maintained by the community ecosystem library, for more details see .
Add dependency:
<dependency>
<groupId>org.apache.dubbo.extensions</groupId>
<artifactId>dubbo-configcenter-etcd</artifactId>
<version>3.3.0</version>
</dependency>
Adjust configuration:
dubbo
config-center
address: etcd://127.0.0.1:1111
The Consul configuration center is maintained by the community ecosystem library, for more details see .
Add dependency:
<dependency>
<groupId>org.apache.dubbo.extensions</groupId>
<artifactId>dubbo-configcenter-consul</artifactId>
<version>3.3.0</version>
</dependency>
Adjust configuration:
dubbo
config-center
address: consul://127.0.0.1:1111