change getRawParameter to getParameter because group never appears in special meta... 6/head
authorqixiaobo <qixiaobo.nj@gmail.com>
Thu, 1 Aug 2019 06:54:37 +0000 (14:54 +0800)
committerqixiaobo <qixiaobo.nj@gmail.com>
Thu, 1 Aug 2019 06:54:37 +0000 (14:54 +0800)
```java
public String getRawParameter(String key) {
    if ("protocol".equals(key))
            return protocol;
    if ("username".equals(key))
            return username;
    if ("password".equals(key))
            return password;
    if ("host".equals(key))
            return host;
    if ("port".equals(key))
            return String.valueOf(port);
    if ("path".equals(key))
            return path;
        return getParameter(key);
}
```

src/main/java/org/apache/dubbo/proxy/service/GenericInvoke.java

index 0ba71b57bc96810a29fffe986f5076db3314288c..8c600b0d6a4036ad7a69e9e351c1cd83623e22e9 100644 (file)
@@ -27,7 +27,7 @@ public class GenericInvoke {
     public static void init() {
         RegistryConfig registryConfig = new RegistryConfig();
         registryConfig.setAddress(registry.getUrl().getProtocol() + "://" + registry.getUrl().getAddress());
-        registryConfig.setGroup(registry.getUrl().getRawParameter(org.apache.dubbo.common.constants.CommonConstants.GROUP_KEY));
+        registryConfig.setGroup(registry.getUrl().getParameter(org.apache.dubbo.common.constants.CommonConstants.GROUP_KEY));
         applicationConfig = new ApplicationConfig();
         applicationConfig.setName("dubbo-proxy");
         applicationConfig.setRegistry(registryConfig);