- [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of 
this repository and believe that this is not a duplicate.
- [x] I have checked the 
[FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository 
and believe that this is not a duplicate.

### Environment

* Dubbo version: 2.7.5
* Operating System version:  windows10
* Java version: 1.8

### Steps to reproduce this issue

ProviderConfig
```
@Configuration
    @EnableDubbo(scanBasePackages = "org.apache.dubbo.demo.provider")
    @PropertySource("classpath:/spring/dubbo-provider.properties")
    @ComponentScan
    static class ProviderConfiguration {
        @Bean
        public RegistryConfig registryConfig() {
            RegistryConfig registryConfig = new RegistryConfig();
            registryConfig.setAddress("nacos://192.168.1.101:8848");
            // 设置部分配置进入配置中心
            registryConfig.setSimplified(true);
            return registryConfig;
        }

        @Bean
        public ConfigCenterConfig configCenterConfig() {
            ConfigCenterConfig configCenterConfig = new ConfigCenterConfig();
            configCenterConfig.setAddress("nacos://192.168.1.101:8848");
            return configCenterConfig;
        }

        @Bean
        public MetadataReportConfig metadataReportConfig() {
            MetadataReportConfig metadataReportConfig = new 
MetadataReportConfig();
            metadataReportConfig.setAddress("nacos://192.168.1.101:8848");
            return metadataReportConfig;
        }
    }
```
when enabled `setSimplified(true)`,  nacos services name is `providers::::`
because

NacosRegistry.java
```
private String getServiceName(URL url) {
        return getServiceName(url, url.getParameter(CATEGORY_KEY, 
DEFAULT_CATEGORY));
    }

    private String getServiceName(URL url, String category) {
        return category + SERVICE_NAME_SEPARATOR + url.getColonSeparatedKey();
    }
```
URL.java
```
 /**
     * The format is "{interface}:[version]:[group]"
     * @return
     */
    public String getColonSeparatedKey() {
        StringBuilder serviceNameBuilder = new StringBuilder();
        append(serviceNameBuilder, INTERFACE_KEY, true);
        append(serviceNameBuilder, VERSION_KEY, false);
        append(serviceNameBuilder, GROUP_KEY, false);
        return serviceNameBuilder.toString();
    }
```
when enabled `setSimplified(true)`,  interface will not register to 
Registry。please see
http://dubbo.apache.org/zh-cn/docs/user/demos/simplify-registry-data.html

[ Full content available at: https://github.com/apache/dubbo/issues/5588 ]
This message was relayed via gitbox.apache.org for 
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to