<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.1</li>
<li>Operating System version: Windows 10 Version 1903</li>
<li>Java version: 1.8.0</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>create 'provider' project</li>
<li>create interface.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25575562/56564818-7d8dc200-65e1-11e9-8e5e-827253472f8b.png"><img src="https://user-images.githubusercontent.com/25575562/56564818-7d8dc200-65e1-11e9-8e5e-827253472f8b.png" alt="image" style="max-width: 100%;"></a></li>
<li>create class implements step2 interface<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25575562/56564933-b9c12280-65e1-11e9-9dee-7f1bf1ed99ed.png"><img src="https://user-images.githubusercontent.com/25575562/56564933-b9c12280-65e1-11e9-9dee-7f1bf1ed99ed.png" alt="image" style="max-width: 100%;"></a></li>
<li>application.properties file add<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25575562/56564980-d78e8780-65e1-11e9-8e9d-ba3505d62d4c.png"><img src="https://user-images.githubusercontent.com/25575562/56564980-d78e8780-65e1-11e9-8e9d-ba3505d62d4c.png" alt="image" style="max-width: 100%;"></a></li>
<li>boot file add ‘@EnableAutoConfiguration’ annotation<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25575562/56565159-508ddf00-65e2-11e9-9bda-ddccd7819afe.png"><img src="https://user-images.githubusercontent.com/25575562/56565159-508ddf00-65e2-11e9-9bda-ddccd7819afe.png" alt="image" style="max-width: 100%;"></a></li>
<li>create 'consumer' project</li>
<li>copy step2 interface to project<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25575562/56565251-8b901280-65e2-11e9-9fa3-8b6e7ed65333.png"><img src="https://user-images.githubusercontent.com/25575562/56565251-8b901280-65e2-11e9-9fa3-8b6e7ed65333.png" alt="image" style="max-width: 100%;"></a></li>
<li>boot file add ‘@EnableAutoConfiguration’ annotation<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25575562/56565376-cb56fa00-65e2-11e9-8a54-6b76d2e539f9.png"><img src="https://user-images.githubusercontent.com/25575562/56565376-cb56fa00-65e2-11e9-8a54-6b76d2e539f9.png" alt="image" style="max-width: 100%;"></a></li>
<li>user <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/reference/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/reference">@reference</a> annotation injection interface<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25575562/56565422-e590d800-65e2-11e9-9ee6-ad630a15b46f.png"><img src="https://user-images.githubusercontent.com/25575562/56565422-e590d800-65e2-11e9-9ee6-ad630a15b46f.png" alt="image" style="max-width: 100%;"></a></li>
<li>run</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">success call 'provider' project function</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">throw exception:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2019-04-23 16:20:47.605 ERROR 2380 --- [nio-9185-exec-5] scms.viSvc.service.SpViCaseService       : caseNo:1904231620475912,Failed to invoke remote method: add, provider: dubbo://192.0.0.66:12345/scms.viSvc.service.SpViCaseServiceInterface?application=scms.viSvc&amp;default.lazy=false&amp;default.sticky=false&amp;dubbo=2.0.2&amp;group=test&amp;interface=scms.viSvc.service.SpViCaseServiceInterface&amp;lazy=false&amp;methods=add&amp;pid=2380&amp;qos.enable=false&amp;register.ip=192.0.0.66&amp;revision=1.0.0&amp;side=consumer&amp;sticky=false&amp;timestamp=1556007474371&amp;version=1.0.0, cause: org.apache.dubbo.remoting.RemotingException: Not found exported service: test/scms.viSvc.service.SpViCaseServiceInterface:1.0.0:12345 in [a/scms.dataSvc.cases.service.SpViCaseServiceInterface:1.0.0:12345, test/scms.dataSvc.cases.service.SpViCaseServiceInterface:1.0.0:12345], may be version or group mismatch , channel: consumer: /192.0.0.66:54541 --&gt; provider: /192.0.0.66:12345, message:RpcInvocation [methodName=add, parameterTypes=[class java.lang.String], arguments=[{}], attachments={path=scms.viSvc.service.SpViCaseServiceInterface, input=462, dubbo=2.0.2, interface=scms.viSvc.service.SpViCaseServiceInterface, version=1.0.0, group=test}]
org.apache.dubbo.remoting.RemotingException: Not found exported service: test/scms.viSvc.service.SpViCaseServiceInterface:1.0.0:12345 in [a/scms.dataSvc.cases.service.SpViCaseServiceInterface:1.0.0:12345, test/scms.dataSvc.cases.service.SpViCaseServiceInterface:1.0.0:12345], may be version or group mismatch , channel: consumer: /192.0.0.66:54541 --&gt; provider: /192.0.0.66:12345, message:RpcInvocation [methodName=add, parameterTypes=[class java.lang.String], arguments=[{}], attachments={path=scms.viSvc.service.SpViCaseServiceInterface, input=462, dubbo=2.0.2, interface=scms.viSvc.service.SpViCaseServiceInterface, version=1.0.0, group=test}]
	at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol.getInvoker(DubboProtocol.java:248)
	at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:102)
	at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:103)
	at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:200)
	at org.apache.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:51)
	at org.apache.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:57)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)"><pre class="notranslate"><code class="notranslate">2019-04-23 16:20:47.605 ERROR 2380 --- [nio-9185-exec-5] scms.viSvc.service.SpViCaseService       : caseNo:1904231620475912,Failed to invoke remote method: add, provider: dubbo://192.0.0.66:12345/scms.viSvc.service.SpViCaseServiceInterface?application=scms.viSvc&amp;default.lazy=false&amp;default.sticky=false&amp;dubbo=2.0.2&amp;group=test&amp;interface=scms.viSvc.service.SpViCaseServiceInterface&amp;lazy=false&amp;methods=add&amp;pid=2380&amp;qos.enable=false&amp;register.ip=192.0.0.66&amp;revision=1.0.0&amp;side=consumer&amp;sticky=false&amp;timestamp=1556007474371&amp;version=1.0.0, cause: org.apache.dubbo.remoting.RemotingException: Not found exported service: test/scms.viSvc.service.SpViCaseServiceInterface:1.0.0:12345 in [a/scms.dataSvc.cases.service.SpViCaseServiceInterface:1.0.0:12345, test/scms.dataSvc.cases.service.SpViCaseServiceInterface:1.0.0:12345], may be version or group mismatch , channel: consumer: /192.0.0.66:54541 --&gt; provider: /192.0.0.66:12345, message:RpcInvocation [methodName=add, parameterTypes=[class java.lang.String], arguments=[{}], attachments={path=scms.viSvc.service.SpViCaseServiceInterface, input=462, dubbo=2.0.2, interface=scms.viSvc.service.SpViCaseServiceInterface, version=1.0.0, group=test}]
org.apache.dubbo.remoting.RemotingException: Not found exported service: test/scms.viSvc.service.SpViCaseServiceInterface:1.0.0:12345 in [a/scms.dataSvc.cases.service.SpViCaseServiceInterface:1.0.0:12345, test/scms.dataSvc.cases.service.SpViCaseServiceInterface:1.0.0:12345], may be version or group mismatch , channel: consumer: /192.0.0.66:54541 --&gt; provider: /192.0.0.66:12345, message:RpcInvocation [methodName=add, parameterTypes=[class java.lang.String], arguments=[{}], attachments={path=scms.viSvc.service.SpViCaseServiceInterface, input=462, dubbo=2.0.2, interface=scms.viSvc.service.SpViCaseServiceInterface, version=1.0.0, group=test}]
	at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol.getInvoker(DubboProtocol.java:248)
	at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:102)
	at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:103)
	at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:200)
	at org.apache.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:51)
	at org.apache.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:57)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
</code></pre></div>
<p dir="auto">'provider' project and 'consumer' project thow same exception.<br>
how to fix it?</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.1-SNAPSHOT</li>
<li>Operating System version: MacOS 10.14</li>
<li>Java version: 1.8</li>
</ul>
<p dir="auto">I find some member fields of ConfigCenterConfig are annotated by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/parameter/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/parameter">@parameter</a>, and the 'useKeyAsProperty' property of the annotation is set 'false'.<br>
For example, the 'check' member field is annotated by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/parameter/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/parameter">@parameter</a>, and its key is "config.check", but the 'useKeyAsProperty' is false.<br>
So the key of this field in URL's parameters is 'check' because the 'useKeyAsProperty' is false, but in config center configuration class like ApolloDynamicConfiguration, the class use 'config.check' to get the property from parameters of URL.<br>
So I think we should adjust the setting.<br>
How about set the 'useKeyAsProperty' to true ?<br>
I want to listen others' proposals.</p>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">config</p>
<div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;dubbo:configcenter address:xxx check=&quot;false&quot;/&gt;"><pre class="notranslate">&lt;<span class="pl-ent">dubbo</span><span class="pl-ent">:</span><span class="pl-ent">configcenter</span> address:xxx <span class="pl-e">check</span>=<span class="pl-s"><span class="pl-pds">"</span>false<span class="pl-pds">"</span></span>/&gt;</pre></div>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">the key in url's parameters should be "config.check", because in apollo dynamic configuration class, it use the key to get the check property<br>
What do you expected from the above steps？</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">the key in parameters is check</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here!
</code></pre></div>