<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/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/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.7</li>
<li>Operating System version:  windows10</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>
<p dir="auto">regist &gt;=2 services in nacos register center</p>
</li>
<li>
<p dir="auto">Ensure successful registration in Nacos</p>
</li>
<li>
<p dir="auto"><a href="http://url:qos_port/ls" rel="nofollow">http://url:qos_port/ls</a></p>
</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">As Provider side:<br>
+---------------------------------------------+---+<br>
|            Provider Service Name            |PUB|<br>
+---------------------------------------------+---+<br>
|com.example.test.service.TestProvider2Service| Y |<br>
+---------------------------------------------+---+<br>
| com.example.test.service.TestProviderService| Y |<br>
+---------------------------------------------+---+<br>
As Consumer side:<br>
+---------------------+---+<br>
|Consumer Service Name|NUM|<br>
+---------------------+---+</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?<br>
As Provider side:<br>
+---------------------------------------------+---+<br>
|            Provider Service Name            |PUB|<br>
+---------------------------------------------+---+<br>
|com.example.test.service.TestProvider2Service| N |<br>
+---------------------------------------------+---+<br>
| com.example.test.service.TestProviderService| Y |<br>
+---------------------------------------------+---+<br>
As Consumer side:<br>
+---------------------+---+<br>
|Consumer Service Name|NUM|<br>
+---------------------+---+</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>
<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/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/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.6.8</li>
<li>Operating System version: windows</li>
<li>Java version: 8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">使用的版本<br>
<code class="notranslate">    &lt;properties&gt; &lt;java.version&gt;1.8&lt;/java.version&gt; &lt;spring-boot.version&gt;1.4.0.RELEASE&lt;/spring-boot.version&gt; &lt;spring.version&gt;4.3.25.RELEASE&lt;/spring.version&gt; &lt;dubbo.version&gt;2.6.8&lt;/dubbo.version&gt; &lt;dubbo.spring-boot.version&gt;0.1.2.RELEASE&lt;/dubbo.spring-boot.version&gt; &lt;nacos.version&gt;1.0.0&lt;/nacos.version&gt; &lt;/properties&gt;</code><br>
配置信息：<br>
`spring:<br>
application:<br>
name: v5-ctp-organization</p>
<p dir="auto">dubbo:<br>
protocol:<br>
id: dubbo<br>
name: dubbo<br>
port: 20880<br>
host: 10.6.5.117<br>
application:<br>
name: ${spring.application.name}<br>
id: ${spring.application.name}<br>
registry:<br>
timeout: 3000<br>
address: nacos://localhost:8888<br>
username: nacos<br>
password: nacos<br>
id: ${spring.application.name}-registry`<br>
启动报错<br>
Caused by: java.lang.IllegalStateException: Invalid name="com.alibaba.dubbo.config.ApplicationConfig#0" contains illegal character, only digit, letter, '-', '_' or '.' is legal.<br>
at com.alibaba.dubbo.config.AbstractConfig.checkProperty(AbstractConfig.java:396) ~[dubbo-2.6.8.jar:2.6.8]<br>
at com.alibaba.dubbo.config.AbstractConfig.checkName(AbstractConfig.java:354) ~[dubbo-2.6.8.jar:2.6.8]<br>
at com.alibaba.dubbo.config.ApplicationConfig.setName(ApplicationConfig.java:99) ~[dubbo-2.6.8.jar:2.6.8]<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_191]<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_191]<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_191]<br>
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_191]<br>
at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:216) ~[spring-core-4.3.2.RELEASE.jar:4.3.2.RELEASE]<br>
at com.alibaba.dubbo.config.spring.context.config.NamePropertyDefaultValueDubboConfigBeanCustomizer.customize(NamePropertyDefaultValueDubboConfigBeanCustomizer.java:65) ~[dubbo-2.6.8.jar:2.6.8]<br>
at com.alibaba.dubbo.config.spring.beans.factory.annotation.DubboConfigBindingBeanPostProcessor.customize(DubboConfigBindingBeanPostProcessor.java:109) ~[dubbo-2.6.8.jar:2.6.8]<br>
at com.alibaba.dubbo.config.spring.beans.factory.annotation.DubboConfigBindingBeanPostProcessor.postProcessBeforeInitialization(DubboConfigBindingBeanPostProcessor.java:91) ~[dubbo-2.6.8.jar:2.6.8]<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]<br>
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]<br>
... 15 common frames omitted</p>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">正常启动</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">无法启动项目</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>