I am using Spring 3. In my xml application context file, I would like to use the scan component and run com.mysite in my root package and not explicitly add each package:
would like to do
<context:component-scan base-package="com.mysite"/>
not
<context:component-scan base-package="com.mysite.util"/> <context:component-scan base-package="com.mysite.transactions"/> <context:component-scan base-package="com.mysite.etc"/>
Is there any success anyway? Is there any recommended way to Spring 3?
source share