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 2018/09/07 09:40:58 UTC

[GitHub] carryxyh commented on a change in pull request #2468: Simplify registry data and add a new service data store seperated from registry #2030

carryxyh commented on a change in pull request #2468: Simplify registry data and add a new service data store seperated from registry #2030
URL: https://github.com/apache/incubator-dubbo/pull/2468#discussion_r215903386
 
 

 ##########
 File path: dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/ServiceBean.java
 ##########
 @@ -219,6 +220,15 @@ public void afterPropertiesSet() throws Exception {
                 }
             }
         }
+        if (getServiceStoreConfig() == null) {
+            Map<String, ServiceStoreConfig> serviceStoreConfigMap = applicationContext == null ? null : BeanFactoryUtils.beansOfTypeIncludingAncestors(applicationContext, ServiceStoreConfig.class, false, false);
+            if (serviceStoreConfigMap != null && serviceStoreConfigMap.size() == 1) {
+                // 第一个元素
 
 Review comment:
   Chinese comment

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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