title: Component scan: Load bean with Spring
body: <p>I have a little question about Spring component scan.</p>
  
  <p>I would like to load all beans in my "my.package.test" and one bean in "my.package".
  To do this, I wrote this xml:</p>
  
  <pre><code>&lt;context:component-scan
      base-package="my.package.test" use-default-filters="false" &gt;
      &lt;context:include-filter type="annotation" expression="org.springframework.stereotype.Controller"/&gt;
      &lt;context:include-filter type="annotation" expression="org.springframework.stereotype.Service"/&gt;
      &lt;context:include-filter type="annotation" expression="org.springframework.stereotype.Component"/&gt;
      &lt;context:include-filter type="assignable" expression="my.package.TestBean" /&gt;   
  &lt;/context:component-scan&gt;
  </code></pre>
  
  <p>All my beans in "my.package.test" are well loaded but my TestBean is not load, I have the no matching bean error.
  My TestBean is well annoted @Component.</p>
  
  <p>I don't understand why it's not loaded.</p>
  
  <p>Thanks for your help.</p>