- [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate. - [ ] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment * Dubbo version: 2.7.3 * Operating System version: macOs sierra * Java version: 1.8 ### Steps to reproduce this issue 1. define two dubbo protocols with different port, like below. ``` @Configuration public class DubboConfiguration { @Bean public ProtocolConfig config1() { ProtocolConfig config = new ProtocolConfig(); config.setId("dubbo1"); config.setName("dubbo"); config.setPort(20880); return config; } @Bean public ProtocolConfig config2() { ProtocolConfig config = new ProtocolConfig(); config.setId("dubbo2"); config.setName("dubbo"); config.setPort(20770); return config; } } ``` 2. specify dubbo bean id "dubbo1" as Service annotation protocol, but not spring bean name "config1". ``` @Service(protocol = "dubbo1") ``` 3. startup the provider and see output log, and see application failed to start without dubbo1 protocol. ``` *************************** APPLICATION FAILED TO START *************************** Description: A component required a bean named 'dubbo1' that could not be found. ``` If we are specify config1 as the protocol, the application can start up succeed. When ServiceBean initialize, it will get reference bean from spring, cannot recognize dubbo properties. @Service(protocol = "config1") Pls. provide [GitHub address] to reproduce this issue. ### Expected Result The application start up succeed. ### Actual Result The application start up failed without dubbo1 protocol. [ Full content available at: https://github.com/apache/dubbo/issues/5049 ] This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
--------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For additional commands, e-mail: notifications-h...@dubbo.apache.org