I am trying to find out the number of database tables the application I am maintaining, uses. I have this in my appContext.xml
<context:component-scan base-package="com.foo, com.bar" use-default-filters="false">
<context:include-filter type="annotation" expression="org.springframework.stereotype.Service" />
<context:include-filter type="annotation" expression="org.springframework.stereotype.Component" />
<context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller" />
</context:component-scan>
....
<jpa:repositories base-package="com.foo.abc, com.bar.def" />
There are other sub projects associated with this project where @Entity
and @Repository
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 ?
This is what I have in my log4j.properties :
log4j.rootLogger=error, file
log4j.category.org.hibernate=debug, hb
log4j.category.org.springframework=debug, spring