<ul dir="auto">
<li>[ ✔️] 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>[<g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> ] 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.4</li>
</ul>
<h3 dir="auto">Description</h3>
<p dir="auto">When using Nacos registry &amp; metadatastore &amp; configcenter, we can pass some parameters in the url, such as:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="nacos://127.0.0.1:8848?namespace=dubbo&amp;clusterName=DEFAULT&amp;namingLoadCacheAtStart=true"><pre class="notranslate"><code class="notranslate">nacos://127.0.0.1:8848?namespace=dubbo&amp;clusterName=DEFAULT&amp;namingLoadCacheAtStart=true
</code></pre></div>
<p dir="auto">Some parameters can be recognized, while some others can't like <code class="notranslate">namingLoadCacheAtStart</code>.</p>
<p dir="auto">In my use case, the config item <code class="notranslate">namingLoadCacheAtStart=true</code> is very important to let naocs load local cache files to avoid the crash of Nacos cluster. It will ensure the stability of application.</p>
<p dir="auto">But the latest version of  Dubbo don't support the param of <code class="notranslate">namingLoadCacheAtStart</code>.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11485990/69842218-5f85ef80-129d-11ea-883f-538d689adbb5.png"><img src="https://user-images.githubusercontent.com/11485990/69842218-5f85ef80-129d-11ea-883f-538d689adbb5.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">I will send a pr to fix this problem.</p>
<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: windows 10</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>当将dubbo配置类不放在根包的目录时，用scanBasePackages指定要扫描的包，org.apache.dubbo.config.spring.context.annotation.DubboComponentScanRegistrar类中getPackagesToScan方法返回是dubbo配置类所在的包（即默认值）</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">返回scanBasePackages指定的包</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">实际上返回的是默认值</p>