bruce121381 opened a new issue #22:
URL: https://github.com/apache/dubbo-spi-extensions/issues/22


   - [x] I have searched the 
[issues](https://github.com/apache/dubbo-spi-extensions/issues) of this 
repository and believe that this is not a duplicate.
   - [x] I have checked the 
[REAMDE](https://github.com/apache/dubbo-admin/blob/dubbo-spi-extensions/README.md)
 of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 2.7.8
   * Operating System version: macOS Catalina
   * Java version: jdk8
   * Module name: my-demo
   
   ### Steps to reproduce this issue
   
   1. add SpringCloudAlibaba
   2. add SpringCloudAlibaba Dubbo Stater (gav: G: com.alibaba.cloud A: 
spring-cloud-starter-dubbo V: 2.2.2.RELEASE)
   3. add DubboAPiDocs like README says
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Result
   
   What do you expected from the above steps?
   In Application Start, DubboApiDocs will expose Annotation for 
DubboApiDubboServer
   
   ### Actual Result
   
   What actually happens?
   Its Blocked in Application Start. I hope in DubboApiDocsServer see my 
DubboApi
   
   If there is an exception, please attach the exception trace:
   
   ```
   ***************************
   APPLICATION FAILED TO START
   ***************************
   
   Description:
   
   Field registry in 
org.apache.dubbo.apidocs.core.DubboApiDocsAnnotationScanner required a single 
bean, but 2 were found:
        - defaultSpringCloudRegistryConfig: defined by method 
'defaultSpringCloudRegistryConfig' in class path resource 
[com/alibaba/cloud/dubbo/autoconfigure/DubboServiceRegistrationAutoConfiguration.class]
        - org.apache.dubbo.config.RegistryConfig#0: defined in null
   
   
   Action:
   
   Consider marking one of the beans as @Primary, updating the consumer to 
accept multiple beans, or using @Qualifier to identify the bean that should be 
consumed
   ```
   


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

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