Skip to content
Permalink
Browse files
change getRawParameter to getParameter because group never appears in…
… special meta information

```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);
	}
```
  • Loading branch information
qixiaobo committed Aug 1, 2019
1 parent c483485 commit ddc6c5e695f8fea952073e02dc099466ffc095f2
Showing 1 changed file with 1 addition and 1 deletion.
@@ -27,7 +27,7 @@ public static void setRegistry(Registry registry) {
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);

0 comments on commit ddc6c5e

Please sign in to comment.