dubbo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] Comven opened a new issue #72: how to configure @Reference annotation with same interface and without different url
Date Tue, 20 Mar 2018 03:08:21 GMT
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

Mime
View raw message