title: How to turn on Spring's component-scan debugging info?
body: <p>I am trying to find out the number of database tables the application I am maintaining, uses. I have this in my appContext.xml </p>
  
  <pre><code> &lt;context:component-scan base-package="com.foo, com.bar" use-default-filters="false"&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:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller" /&gt;
   &lt;/context:component-scan&gt;
           ....
   &lt;jpa:repositories base-package="com.foo.abc, com.bar.def" /&gt;
  </code></pre>
  
  <p>There are other sub projects associated with this project where <code>@Entity</code> and <code>@Repository</code> have liberally been used. I am thinking if I am just able to turn on Spring's debugging somehow, which will list all classnames as and when it scans them based on the base package, I should be able to find all jpa repositories. How can I turn on springs debugging to spit out this information ?  </p>
  
  <p>This is what I have in my log4j.properties : </p>
  
  <pre><code>log4j.rootLogger=error, file
  log4j.category.org.hibernate=debug, hb
  log4j.category.org.springframework=debug, spring
  </code></pre>