lifes opened a new issue #9646:
URL: https://github.com/apache/dubbo/issues/9646


   1. 接口定义
   public interface Service2 {
   
       String sayHello(String name);
   
       String sayHello(ClientInfo clientInfo, String name);
   
       default CompletableFuture<String> sayHelloAsync(String name){
          return CompletableFuture.completedFuture(sayHello(name));
       }
   
       default CompletableFuture<String> sayHelloAsync(ClientInfo clientInfo, 
String name){
           return CompletableFuture.completedFuture(sayHello(clientInfo, name));
       }
   }
   2.
   @Configuration
   public class DubboConsumerConfiguration {
   
       @Bean
       @DubboReference(
               check = false,
           methods = {
               @Method(name = "sayHelloAsync", onreturn = 
"service2_sayHelloAsync.onreturn")
           }
       )
       public ReferenceBean<Service2> service2() {
           return new ReferenceBean<>();
       }
   }
   
   无法启动。查看官方文档没看到如何配置。


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to