title: What syntax for including sub-packages in <context:component-scan>?
body: <p>I am using Spring and I have a long list of subpackages, do I have to specify them one by one in the <code>&lt;context:component-scan&gt;</code> tag?</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;context:component-scan base-package="com.fooapp.mainpackage, 
  com.fooapp.mainpackage.subpackage1, 
  com.fooapp.mainpackage.subpackage2, 
  com.fooapp.mainpackage.subpackage3" /&gt;
  </code></pre>