|
@@ -41,7 +41,7 @@ public class RegistryZK implements Runnable { |
|
@@ -41,7 +41,7 @@ public class RegistryZK implements Runnable { |
|
41
|
//是否要将自己注册到 ZK
|
41
|
//是否要将自己注册到 ZK
|
|
42
|
if (appConfiguration.isZkSwitch()){
|
42
|
if (appConfiguration.isZkSwitch()){
|
|
43
|
String path = appConfiguration.getZkRoot() + "/ip-" + ip + ":" + cimServerPort + ":" + httpPort;
|
43
|
String path = appConfiguration.getZkRoot() + "/ip-" + ip + ":" + cimServerPort + ":" + httpPort;
|
|
44
|
- zKit.createNode(path, path);
|
44
|
+ zKit.createNode(path);
|
|
45
|
logger.info("注册 zookeeper 成功,msg=[{}]", path);
|
45
|
logger.info("注册 zookeeper 成功,msg=[{}]", path);
|
|
46
|
}
|
46
|
}
|
|
47
|
|
47
|
|