title: Spring components scan with multiple directories
body: <p>I need to add these directories to my app. This actually works:</p>
  
  <pre><code>&lt;context:component-scan base-package="web.controllers"/&gt;
  &lt;context:component-scan base-package="web.controllers.gec"/&gt;
  &lt;context:component-scan base-package="web.controllers.gec.costs"/&gt;
  &lt;context:component-scan base-package="web.controllers.gec.pay"/&gt;
  </code></pre>
  
  <p>Bu I'd like to know how could I make this with just one line of code. Something like:</p>
  
  <pre><code> &lt;context:component-scan base-package="web.controllers"&gt;
         &lt;context:include-filter type="regex" expression=".*.*"/&gt;
   &lt;/context:component-scan&gt;
  </code></pre>
  
  <p>Any help or ideas? Thanks a lot!</p>