You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@dubbo.apache.org by GitBox <gi...@apache.org> on 2018/04/04 02:42:09 UTC

[GitHub] zonghaishang opened a new issue #1549: @EnableDubbo annotation throw No bean named 'xxx' available error

zonghaishang opened a new issue #1549: @EnableDubbo annotation throw No bean named 'xxx' available error
URL: https://github.com/apache/incubator-dubbo/issues/1549
 
 
   When use @EnableDubbo with property file: 
   
   ```
       @Configuration
       @EnableDubbo(scanBasePackages = "com.alibaba.dubbo.examples.annotation.action")
       @PropertySource("classpath:/com/alibaba/dubbo/examples/annotation/dubbo-consumer.properties")
       static public class ConsumerConfiguration {
       }
   
   package com.alibaba.dubbo.examples.annotation.action;
   
   @Component("annotationAction")
   public class AnnotationAction {
   
       @Reference
       private AnnotationService annotationService;
   
       public String doSayHello(String name) {
           return annotationService.sayHello(name);
       }
   }
   ```
   Throw an error: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'annotationAction' available
   
   more detail can see: com.alibaba.dubbo.examples.annotation.AnnotationConsumer

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