diff --git a/src/main/java/com/loafle/commons/rpc/registry/RPCRegistry.java b/src/main/java/com/loafle/commons/rpc/registry/RPCRegistry.java index 4bceed0..c16662f 100644 --- a/src/main/java/com/loafle/commons/rpc/registry/RPCRegistry.java +++ b/src/main/java/com/loafle/commons/rpc/registry/RPCRegistry.java @@ -52,7 +52,7 @@ public class RPCRegistry implements RPCInvoker { @Override public boolean hasMethod(String method) { - String[] sm = method.split("."); + String[] sm = method.split("\\."); if (null == sm || 2 != sm.length) { return false; @@ -71,7 +71,7 @@ public class RPCRegistry implements RPCInvoker { public Object invoke(RPCRegistryCodec codec) throws RPCException { String method = codec.method(); - String[] sm = method.split("."); + String[] sm = method.split("\\."); if (null == sm || 2 != sm.length) { throw new RPCException(String.format("method[%s] is not valid", method));