diff --git a/net/src/main/java/com/zfoo/net/consumer/registry/ZookeeperRegistry.java b/net/src/main/java/com/zfoo/net/consumer/registry/ZookeeperRegistry.java index ae9109bb..ca199400 100644 --- a/net/src/main/java/com/zfoo/net/consumer/registry/ZookeeperRegistry.java +++ b/net/src/main/java/com/zfoo/net/consumer/registry/ZookeeperRegistry.java @@ -130,7 +130,7 @@ public class ZookeeperRegistry implements IRegistry { } if (StringUtils.isNotBlank(registryConfig.getPath())) { - rootPath = registryConfig.getPath(); + rootPath = StringUtils.trim(registryConfig.getPath()); providerRootPath = rootPath + "/provider"; consumerRootPath = rootPath + "/consumer"; }