<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/wiki/FAQ">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.5.3</li>
<li>Operating System version: xxx</li>
<li>Java version: xxx</li>
</ul>
<h3 dir="auto">Step to reproduce this issue</h3>
<ol dir="auto">
<li>configurators 里面的参数不能动态生效</li>
</ol>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">动态生效</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">不生效</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here!
</code></pre></div>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.3</li>
<li>Operating System version: macOs sierra</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>define two dubbo protocols with different port, like below.</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Configuration
public class DubboConfiguration {

  @Bean
  public ProtocolConfig config1() {
    ProtocolConfig config = new ProtocolConfig();
    config.setId(&quot;dubbo1&quot;);
    config.setName(&quot;dubbo&quot;);
    config.setPort(20880);
    return config;
  }

  @Bean
  public ProtocolConfig config2() {
    ProtocolConfig config = new ProtocolConfig();
    config.setId(&quot;dubbo2&quot;);
    config.setName(&quot;dubbo&quot;);
    config.setPort(20770);
    return config;
  }
}"><pre class="notranslate"><code class="notranslate">@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;
  }
}
</code></pre></div>
<ol start="2" dir="auto">
<li>specify dubbo bean id "dubbo1" as Service annotation protocol, but not spring bean name "config1".</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Service(protocol = &quot;dubbo1&quot;)"><pre class="notranslate"><code class="notranslate">@Service(protocol = "dubbo1")
</code></pre></div>
<ol start="3" dir="auto">
<li>startup the provider and see output log, and see application failed to start without dubbo1 protocol.</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="***************************
APPLICATION FAILED TO START
***************************

Description:

A component required a bean named 'dubbo1' that could not be found."><pre class="notranslate"><code class="notranslate">***************************
APPLICATION FAILED TO START
***************************

Description:

A component required a bean named 'dubbo1' that could not be found.
</code></pre></div>
<p dir="auto">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.<br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/service/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/service">@service</a>(protocol = "config1")</p>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">The application start up succeed.</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">The application start up failed without dubbo1 protocol.</p>