You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@dubbo.apache.org by GitBox <gi...@apache.org> on 2018/03/20 03:08:21 UTC

[GitHub] Comven opened a new issue #72: how to configure @Reference annotation with same interface and without different url

Comven opened a new issue #72: how to configure @Reference annotation with same interface and without different url
URL: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/72
 
 
   as the title, when use xml to configure dubbo,we can do like this
   ```
   <dubbo:reference interface="com.jinglan.dubbo.api.DemoApi" url="dubbo://127.0.0.1:12345" id="demoApi1"/>
   <dubbo:reference interface="com.jinglan.dubbo.api.DemoApi" url="dubbo://127.0.0.1:12346" id="demoApi2"/>
   ```
   but when change to annotation as follow example
   ```
   @Reference(check = false, timeout = 20000,url = "dubbo://127.0.0.1:12345")
   private DemoApi demoApi1;
   @Reference(check = false, timeout = 20000,url = "dubbo://127.0.0.1:12346")
   private DemoApi demoApi2;
   ```
    it does not work fine.
   
   what can i do to fix this scene?
   

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