dubbo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] zonghaishang commented on issue #2154: Write interface name and version twice in one request
Date Wed, 01 Aug 2018 02:06:14 GMT
zonghaishang commented on issue #2154: Write interface name and version twice in one request
URL: https://github.com/apache/incubator-dubbo/issues/2154#issuecomment-409425057
 
 
   @linux-china 
   `out.writeUTF(inv.getAttachment(Constants.PATH_KEY));`  The default Path and interface
are the same, but not required, you can refer `org.apache.dubbo.config.spring.ServiceBean#afterPropertiesSet`
:
   
   ```
           if (getPath() == null || getPath().length() == 0) {
               if (beanName != null && beanName.length() > 0
                       && getInterface() != null && getInterface().length()
> 0
                       && beanName.startsWith(getInterface())) {
                   setPath(beanName);
               }
           }
   ```

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


Mime
View raw message