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/10/26 12:12:59 UTC
[GitHub] [dubbo] ooooo-youwillsee edited a comment on issue #9116: 在 spring boot 中使用 dubbo, 对注解 @DubboReference 依赖, 希望可以提供 @MockBean 的功能
ooooo-youwillsee edited a comment on issue #9116:
URL: https://github.com/apache/dubbo/issues/9116#issuecomment-951875944
yes
I have one configuration class , for example:
```
@Configuration
public class XXXConfiguration {
@DubboReference
private SomeService someService;
@Bean
public AnotherService anotherService() {
return new AnotherService() {
public void invoke() {
someService.invokeSomeMethod();
}
}
}
```
but I can't test , because someService must use register center for Using Spring cloud alibaba
--
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