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 2022/11/01 00:36:21 UTC

[GitHub] [dubbo] AlbumenJ commented on issue #10765: dubbo.consumer.tag not work on 3.x

AlbumenJ commented on issue #10765:
URL: https://github.com/apache/dubbo/issues/10765#issuecomment-1297857126

   > 但是鉴于您提了该issue,所以我猜Dubbo也许在此基础之上做了更进一步的工作,即使不用显式地写<dubbo:consumer tag="${key}">也能让 dubbo.consumer.tag生效。我的理解对吗?
   
   是的
   
   > 按照该思路,我在源码中看到Dubbo在内部用ModuleEnvironment的appConfigMap给各种XxxConfig赋值,这就使得即使不写<dubbo:consumer tag="${key}">也能让dubbo.consumer.tag生效。ModuleEnvironment是在Spring启动中DubboInfraBeanRegisterPostProcessor#postProcessBeanFactory()方法执行的时候构建了appConfigMap。
   
   目前的逻辑只是起到了一个 placeholder 覆盖的作用,但是在 Dubbo 里面可以通过特定格式的配置直接修改(参考 https://dubbo.apache.org/zh/docs3-v2/java-sdk/reference-manual/config/principle/ 以及各个 `XxxConfig` 的 `refresh` 方法)。


-- 
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