You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/07/14 08:26:36 UTC

[GitHub] [dubbo] gang0713 opened a new issue #8290: dubbo3.0.1服务设置了分组为dev。但是注册到nacos上的分组还是显示dubbo

gang0713 opened a new issue #8290:
URL: https://github.com/apache/dubbo/issues/8290


   @DubboService(version = "${platform.service.version}", **group = "${platform.service.group}"**
   
   
   ![image](https://user-images.githubusercontent.com/1773414/125589470-9316b4ec-71bd-4601-827c-da39883d4389.png)
   
   但是注册到nacos上的分组还是显示dubbo
   ![image](https://user-images.githubusercontent.com/1773414/125589335-6175c5ba-ef59-487c-971a-79a27f6b2579.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] gang0713 closed issue #8290: dubbo3.0.1服务设置了分组为dev。但是注册到nacos上的分组还是显示dubbo

Posted by GitBox <gi...@apache.org>.
gang0713 closed issue #8290:
URL: https://github.com/apache/dubbo/issues/8290


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] gang0713 commented on issue #8290: dubbo3.0.1服务设置了分组为dev。但是注册到nacos上的分组还是显示dubbo

Posted by GitBox <gi...@apache.org>.
gang0713 commented on issue #8290:
URL: https://github.com/apache/dubbo/issues/8290#issuecomment-880317305


   yaml中配置 也没有效果 ,正常在yaml中配置 也应该 可以吧。
     registry:
       #    file: ${user.home}/dubbo-cache/${spring.application.name}/dubbo.cache
       address: nacos://${nacos.host}:${nacos.port}
       **group**: ${platform.service.group}


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] kevinw66 commented on issue #8290: dubbo3.0.1服务设置了分组为dev。但是注册到nacos上的分组还是显示dubbo

Posted by GitBox <gi...@apache.org>.
kevinw66 commented on issue #8290:
URL: https://github.com/apache/dubbo/issues/8290#issuecomment-880331515


   > yaml中配置 也没有效果 ,正常在yaml中配置 也应该 可以吧。
   > registry:
   > # file: ${user.home}/dubbo-cache/${spring.application.name}/dubbo.cache
   > address: nacos://${nacos.host}:${nacos.port}
   > **group**: ${platform.service.group}
   
   我这边是可以的,看看你那边是不是配置读取有问题呢


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] kevinw66 commented on issue #8290: dubbo3.0.1服务设置了分组为dev。但是注册到nacos上的分组还是显示dubbo

Posted by GitBox <gi...@apache.org>.
kevinw66 commented on issue #8290:
URL: https://github.com/apache/dubbo/issues/8290#issuecomment-879752095


   使用RegistryConfig.setGroup()设置分组
   ```
   @Bean
   public RegistryConfig registryConfig() {
       RegistryConfig registryConfig = new RegistryConfig();
       registryConfig.setAddress("nacos://127.0.0.1:8848");
       registryConfig.setGroup("dev");
       return registryConfig;
   }
   ```
   或者
   `<dubbo:registry group="dev" address="nacos://127.0.0.1:8848"/>`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org