chenhuaming commented on issue #9647:
URL: https://github.com/apache/dubbo/issues/9647#issuecomment-1033256995


   > 能否给下完整的项目工程用例代码
   
   官方的示例代码,添加
   
   @Configuration
   public class DubboConsumerConfiguration {
   
       @Bean
       @DubboReference(
               check = false,
           methods = {
                // 如果删除这一行,则不报错
                //仅仅配置@Method(name = "sayHelloAsync"),报错
               //换成xml配置不报错
               //@DubboReference直接在filed上注入不报错
               @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