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 2021/07/16 08:15:23 UTC

[GitHub] [dubbo] linxiaobai opened a new issue #8306: how to refer dubbo service in unit test

linxiaobai opened a new issue #8306:
URL: https://github.com/apache/dubbo/issues/8306


   - [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   - [x] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 2.7.0
   * Operating System version: MacOs 10.14.2
   * Java version: 1.8.0_151
   
   ### Steps to reproduce this issue
   
   1. define a dubbo service  and export to nacos
   2. in unit test(will start SpringBoot) refer this service and config injvm = false
   3. the service cannot be found 
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Result
   
   refer dubbo service can be invoked
   
   ### Actual Result
   
   dubbo service provider can't be found
   
   What actually happens?
   
   
   


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


[GitHub] [dubbo] kevinw66 commented on issue #8306: how to refer dubbo service in unit test

Posted by GitBox <gi...@apache.org>.
kevinw66 commented on issue #8306:
URL: https://github.com/apache/dubbo/issues/8306#issuecomment-888233100


   > > > > > > Try this
   > > > > > > ```
   > > > > > > ReferenceConfig<DemoService> reference = new ReferenceConfig<>();
   > > > > > > reference.setApplication(new ApplicationConfig("dubbo-demo-api-consumer"));
   > > > > > > reference.setRegistry(new RegistryConfig("zookeeper://127.0.0.1:2181"));
   > > > > > > reference.setInterface(DemoService.class);
   > > > > > > DemoService service = reference.get();
   > > > > > > String message = service.sayHello("dubbo");
   > > > > > > ```
   > > > > > 
   > > > > > 
   > > > > > 上面这个解法似乎解决不了我的问题。
   > > > > > 我跑单测时会启动spring容器注册dubbo service ,然后在单测里会用@DubboReference注入service去执行一些方法测试
   > > > > > 问题:
   > > > > > @DubboReference注入的service时不会确保该service一定成功被注册到注册中心之后再被引用,所以抛了service找不到的错误
   > > > > > 我个人觉得,如果按照spring的逻辑,@Autowried注入一个bean应该是可以确保这个bean生命周期做完成再可用,而@DubboReference似乎没做这些处理。
   > > > > 
   > > > > 
   > > > > 有用最新版本测试过吗,还有这个问题吗?
   > > > 
   > > > 
   > > > 新版没测过,当前2.7.10版本解决不了这个问题吗?
   > > 
   > > 
   > > 我用2.7.10测了一下没什么问题,能不能麻烦提供一个可以稳定复现的Demo呢?
   > 
   > 你可能走了injvm模式,需要将injvm关闭掉。
   > 
   > @DubboReference(injvm = false)
   
   我这好像还是可以
   ![image](https://user-images.githubusercontent.com/31196226/127314584-289fed24-e389-46f1-91f5-1c9528c51918.png)
   


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


[GitHub] [dubbo] kevinw66 commented on issue #8306: how to refer dubbo service in unit test

Posted by GitBox <gi...@apache.org>.
kevinw66 commented on issue #8306:
URL: https://github.com/apache/dubbo/issues/8306#issuecomment-884619989


   > > > > Try this
   > > > > ```
   > > > > ReferenceConfig<DemoService> reference = new ReferenceConfig<>();
   > > > > reference.setApplication(new ApplicationConfig("dubbo-demo-api-consumer"));
   > > > > reference.setRegistry(new RegistryConfig("zookeeper://127.0.0.1:2181"));
   > > > > reference.setInterface(DemoService.class);
   > > > > DemoService service = reference.get();
   > > > > String message = service.sayHello("dubbo");
   > > > > ```
   > > > 
   > > > 
   > > > 上面这个解法似乎解决不了我的问题。
   > > > 我跑单测时会启动spring容器注册dubbo service ,然后在单测里会用@DubboReference注入service去执行一些方法测试
   > > > 问题:
   > > > @DubboReference注入的service时不会确保该service一定成功被注册到注册中心之后再被引用,所以抛了service找不到的错误
   > > > 我个人觉得,如果按照spring的逻辑,@Autowried注入一个bean应该是可以确保这个bean生命周期做完成再可用,而@DubboReference似乎没做这些处理。
   > > 
   > > 
   > > 有用最新版本测试过吗,还有这个问题吗?
   > 
   > 新版没测过,当前2.7.10版本解决不了这个问题吗?
   
   我用2.7.10测了一下没什么问题,能不能麻烦提供一个可以稳定复现的Demo呢?


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


[GitHub] [dubbo] AlbumenJ commented on issue #8306: how to refer dubbo service in unit test

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #8306:
URL: https://github.com/apache/dubbo/issues/8306#issuecomment-885371536


   > > Try this
   > > ```
   > > ReferenceConfig<DemoService> reference = new ReferenceConfig<>();
   > > reference.setApplication(new ApplicationConfig("dubbo-demo-api-consumer"));
   > > reference.setRegistry(new RegistryConfig("zookeeper://127.0.0.1:2181"));
   > > reference.setInterface(DemoService.class);
   > > DemoService service = reference.get();
   > > String message = service.sayHello("dubbo");
   > > ```
   > 
   > 上面这个解法似乎解决不了我的问题。
   > 
   > 我跑单测时会启动spring容器注册dubbo service ,然后在单测里会用@DubboReference注入service去执行一些方法测试
   > 
   > 问题:
   > @DubboReference注入的service时不会确保该service一定成功被注册到注册中心之后再被引用,所以抛了service找不到的错误
   > 
   > 我个人觉得,如果按照spring的逻辑,@Autowried注入一个bean应该是可以确保这个bean生命周期做完成再可用,而@DubboReference似乎没做这些处理。
   
   引用的这个 service 是不是走类似本地调用的?目前 Autowried 对于单个 DubboReference 的操作应该是已经在 DubboReference 中涵盖了的


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


[GitHub] [dubbo] linxiaobai edited a comment on issue #8306: how to refer dubbo service in unit test

Posted by GitBox <gi...@apache.org>.
linxiaobai edited a comment on issue #8306:
URL: https://github.com/apache/dubbo/issues/8306#issuecomment-882253799


   
   > Try this
   > 
   > ```
   > ReferenceConfig<DemoService> reference = new ReferenceConfig<>();
   > reference.setApplication(new ApplicationConfig("dubbo-demo-api-consumer"));
   > reference.setRegistry(new RegistryConfig("zookeeper://127.0.0.1:2181"));
   > reference.setInterface(DemoService.class);
   > DemoService service = reference.get();
   > String message = service.sayHello("dubbo");
   > ```
   上面这个解法似乎解决不了我的问题。
   
   ---
   我跑单测时会启动spring容器注册dubbo service ,然后在单测里会用@DubboReference注入service去执行一些方法测试
   
   
   问题: 
   @DubboReference注入的service时不会确保该service一定成功被注册到注册中心之后再被引用,所以抛了service找不到的错误
   
   
   我个人觉得,如果按照spring的逻辑,@Autowried注入一个bean应该是可以确保这个bean生命周期做完成再可用,而@DubboReference似乎没做这些处理。


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


[GitHub] [dubbo] linxiaobai commented on issue #8306: how to refer dubbo service in unit test

Posted by GitBox <gi...@apache.org>.
linxiaobai commented on issue #8306:
URL: https://github.com/apache/dubbo/issues/8306#issuecomment-883778084


   > > > Try this
   > > > ```
   > > > ReferenceConfig<DemoService> reference = new ReferenceConfig<>();
   > > > reference.setApplication(new ApplicationConfig("dubbo-demo-api-consumer"));
   > > > reference.setRegistry(new RegistryConfig("zookeeper://127.0.0.1:2181"));
   > > > reference.setInterface(DemoService.class);
   > > > DemoService service = reference.get();
   > > > String message = service.sayHello("dubbo");
   > > > ```
   > > 
   > > 
   > > 上面这个解法似乎解决不了我的问题。
   > > 我跑单测时会启动spring容器注册dubbo service ,然后在单测里会用@DubboReference注入service去执行一些方法测试
   > > 问题:
   > > @DubboReference注入的service时不会确保该service一定成功被注册到注册中心之后再被引用,所以抛了service找不到的错误
   > > 我个人觉得,如果按照spring的逻辑,@Autowried注入一个bean应该是可以确保这个bean生命周期做完成再可用,而@DubboReference似乎没做这些处理。
   > 
   > 有用最新版本测试过吗,还有这个问题吗?
   
   新版没测过,当前2.7.10版本解决不了这个问题吗?


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


[GitHub] [dubbo] linxiaobai commented on issue #8306: how to refer dubbo service in unit test

Posted by GitBox <gi...@apache.org>.
linxiaobai commented on issue #8306:
URL: https://github.com/apache/dubbo/issues/8306#issuecomment-887989850


   > > > Try this
   > > > ```
   > > > ReferenceConfig<DemoService> reference = new ReferenceConfig<>();
   > > > reference.setApplication(new ApplicationConfig("dubbo-demo-api-consumer"));
   > > > reference.setRegistry(new RegistryConfig("zookeeper://127.0.0.1:2181"));
   > > > reference.setInterface(DemoService.class);
   > > > DemoService service = reference.get();
   > > > String message = service.sayHello("dubbo");
   > > > ```
   > > 
   > > 
   > > 上面这个解法似乎解决不了我的问题。
   > > 我跑单测时会启动spring容器注册dubbo service ,然后在单测里会用@DubboReference注入service去执行一些方法测试
   > > 问题:
   > > @DubboReference注入的service时不会确保该service一定成功被注册到注册中心之后再被引用,所以抛了service找不到的错误
   > > 我个人觉得,如果按照spring的逻辑,@Autowried注入一个bean应该是可以确保这个bean生命周期做完成再可用,而@DubboReference似乎没做这些处理。
   > 
   > 引用的这个 service 是不是走类似本地调用的?目前 Autowried 对于单个 DubboReference 的操作应该是已经在 DubboReference 中涵盖了的
   
   本地调用没问题,我关闭了本地调用不行。
   
   本地调用injvm开启后,consumer端发起服务调用时用的线程是跟provider接受并处理请求的线程是同一个,导致我们这边有些测试逻辑满足不了,所以我们期望能走一个远程引入的方式。
   
   step1. 单测中先启动容器并暴露接口A
   step2.然后在部分testcase中通过  @DubboReference(injvm = false) 引入接口A
   step3.发起调用时,提示接口A找不到
   
   目前的现状就是这样
   


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


[GitHub] [dubbo] linxiaobai commented on issue #8306: how to refer dubbo service in unit test

Posted by GitBox <gi...@apache.org>.
linxiaobai commented on issue #8306:
URL: https://github.com/apache/dubbo/issues/8306#issuecomment-925807176


   ```java
   @RunWith(SpringRunner.class)
   @SpringBootTest(classes = MicroServiceApplication.class)
   public class MicroServiceApplicationTest {
   
       @DubboReference(injvm = false)
       private HelloService helloService;
   
       @Test
       public void test() {
           System.out.println(helloService);
           String hello = helloService.hello();
           System.out.println(hello);
       }
   }
   ```
   
   
   ![image](https://user-images.githubusercontent.com/7956413/134512400-142be7b7-e338-4c92-9944-73f193e8214a.png)
   
   
   
   @kevinw66 我这边测试还是不行。你那边本地单测有加@RunWith(SpringRunner.class) 这个吗?需要将spring容器跟单测case一起run才行。
   
   我用的注册中心是nacos的,不知道我们验证的环境是否一致。
   
   目前最新的复现问题的dubbo版本是:
   
   org.apache.dubbo:dubbo:2.7.13
   org.apache.dubbo:dubbo-registry-nacos:2.7.13
   com.alibaba.nacos:nacos-client:1.4.2
   
   
   ---
   之前提问题的时候用的版本是2.7.10,也是一样的问题。
   
   
   
   


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


[GitHub] [dubbo] kevinw66 commented on issue #8306: how to refer dubbo service in unit test

Posted by GitBox <gi...@apache.org>.
kevinw66 commented on issue #8306:
URL: https://github.com/apache/dubbo/issues/8306#issuecomment-881310906


   Try this
   ```
   ReferenceConfig<DemoService> reference = new ReferenceConfig<>();
   reference.setApplication(new ApplicationConfig("dubbo-demo-api-consumer"));
   reference.setRegistry(new RegistryConfig("zookeeper://127.0.0.1:2181"));
   reference.setInterface(DemoService.class);
   DemoService service = reference.get();
   String message = service.sayHello("dubbo");
   ```


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


[GitHub] [dubbo] kevinw66 commented on issue #8306: how to refer dubbo service in unit test

Posted by GitBox <gi...@apache.org>.
kevinw66 commented on issue #8306:
URL: https://github.com/apache/dubbo/issues/8306#issuecomment-882286670


   > > Try this
   > > ```
   > > ReferenceConfig<DemoService> reference = new ReferenceConfig<>();
   > > reference.setApplication(new ApplicationConfig("dubbo-demo-api-consumer"));
   > > reference.setRegistry(new RegistryConfig("zookeeper://127.0.0.1:2181"));
   > > reference.setInterface(DemoService.class);
   > > DemoService service = reference.get();
   > > String message = service.sayHello("dubbo");
   > > ```
   > 
   > 上面这个解法似乎解决不了我的问题。
   > 
   > 我跑单测时会启动spring容器注册dubbo service ,然后在单测里会用@DubboReference注入service去执行一些方法测试
   > 
   > 问题:
   > @DubboReference注入的service时不会确保该service一定成功被注册到注册中心之后再被引用,所以抛了service找不到的错误
   > 
   > 我个人觉得,如果按照spring的逻辑,@Autowried注入一个bean应该是可以确保这个bean生命周期做完成再可用,而@DubboReference似乎没做这些处理。
   
   有用最新版本测试过吗,还有这个问题吗?


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


[GitHub] [dubbo] linxiaobai commented on issue #8306: how to refer dubbo service in unit test

Posted by GitBox <gi...@apache.org>.
linxiaobai commented on issue #8306:
URL: https://github.com/apache/dubbo/issues/8306#issuecomment-887988720


   > > > > > Try this
   > > > > > ```
   > > > > > ReferenceConfig<DemoService> reference = new ReferenceConfig<>();
   > > > > > reference.setApplication(new ApplicationConfig("dubbo-demo-api-consumer"));
   > > > > > reference.setRegistry(new RegistryConfig("zookeeper://127.0.0.1:2181"));
   > > > > > reference.setInterface(DemoService.class);
   > > > > > DemoService service = reference.get();
   > > > > > String message = service.sayHello("dubbo");
   > > > > > ```
   > > > > 
   > > > > 
   > > > > 上面这个解法似乎解决不了我的问题。
   > > > > 我跑单测时会启动spring容器注册dubbo service ,然后在单测里会用@DubboReference注入service去执行一些方法测试
   > > > > 问题:
   > > > > @DubboReference注入的service时不会确保该service一定成功被注册到注册中心之后再被引用,所以抛了service找不到的错误
   > > > > 我个人觉得,如果按照spring的逻辑,@Autowried注入一个bean应该是可以确保这个bean生命周期做完成再可用,而@DubboReference似乎没做这些处理。
   > > > 
   > > > 
   > > > 有用最新版本测试过吗,还有这个问题吗?
   > > 
   > > 
   > > 新版没测过,当前2.7.10版本解决不了这个问题吗?
   > 
   > 我用2.7.10测了一下没什么问题,能不能麻烦提供一个可以稳定复现的Demo呢?
   
   你可能走了injvm模式,需要将injvm关闭掉。
   
   @DubboReference(injvm = false)


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


[GitHub] [dubbo] CrazyHZM commented on issue #8306: how to refer dubbo service in unit test

Posted by GitBox <gi...@apache.org>.
CrazyHZM commented on issue #8306:
URL: https://github.com/apache/dubbo/issues/8306#issuecomment-925527264


   @linxiaobai 
   Are you still paying attention to this issue?


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


[GitHub] [dubbo] qixiaobo commented on issue #8306: how to refer dubbo service in unit test

Posted by GitBox <gi...@apache.org>.
qixiaobo commented on issue #8306:
URL: https://github.com/apache/dubbo/issues/8306#issuecomment-926329636


   听上去是希望junit启动本地注册的服务 本地通过reference引用到吧 


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


[GitHub] [dubbo] linxiaobai commented on issue #8306: how to refer dubbo service in unit test

Posted by GitBox <gi...@apache.org>.
linxiaobai commented on issue #8306:
URL: https://github.com/apache/dubbo/issues/8306#issuecomment-926383828


   > 听上去是希望junit启动本地注册的服务 本地通过reference引用到吧
   
   是的


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


[GitHub] [dubbo] linxiaobai commented on issue #8306: how to refer dubbo service in unit test

Posted by GitBox <gi...@apache.org>.
linxiaobai commented on issue #8306:
URL: https://github.com/apache/dubbo/issues/8306#issuecomment-882253799


   > Try this
   > 
   > ```
   > ReferenceConfig<DemoService> reference = new ReferenceConfig<>();
   > reference.setApplication(new ApplicationConfig("dubbo-demo-api-consumer"));
   > reference.setRegistry(new RegistryConfig("zookeeper://127.0.0.1:2181"));
   > reference.setInterface(DemoService.class);
   > DemoService service = reference.get();
   > String message = service.sayHello("dubbo");
   > ```
   
   > Try this
   > 
   > ```
   > ReferenceConfig<DemoService> reference = new ReferenceConfig<>();
   > reference.setApplication(new ApplicationConfig("dubbo-demo-api-consumer"));
   > reference.setRegistry(new RegistryConfig("zookeeper://127.0.0.1:2181"));
   > reference.setInterface(DemoService.class);
   > DemoService service = reference.get();
   > String message = service.sayHello("dubbo");
   > ```
   
   1.  我跑单测时会启动spring容器注册dubbo service ,然后在单测里会用@DubboReference注入service去执行一些方法测试
   
   
   问题: 
   @DubboReference注入的service时不会确保该service一定成功被注册到注册中心之后再被引用,所以抛了service找不到的错误
   
   
   我个人觉得,如果按照spring的逻辑,@Autowried注入一个bean应该是可以确保这个bean生命周期做完成再可用,而@DubboReference似乎没做这些处理。


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