JavaConfig for <context:component-scan>
So far I have this tag in my XML config file:
<context:component-scan base-package="de.hska"/>
I'm doing most of the configuration via JavaConfig in Spring 3.0. Therefore, I'd like to get rid of the component-scan in XML and do it via JavaConfig. Any hint is appreciated!
My web application uses JSF 2 for the presentation layer, and in web.xml I have the following section.
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:/META-INF/spring.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoade rListener</listener-class>
</listener>
<listener>
<listener-class>org.springframework.web.context.request.Requ estContextListener</listener-class>
</listener>