Just a general question, when you define a Java based configuration web app. Ie.e have a class for : ApplicationContext and a WebApplicationInitializer class.
How does Spring know it has to load the beans, as no xml config files exists.. how does tomcat know anything about the webapp without a web.xml
Its a newbie question.. i appreciate that. 🙂
See this blog post from SpringSource blog, important part about
web.xmlhas an example, basically you point toJavaConfigWebApplicationContextinstead of defaultXmlWebApplicationContextinDispatcherServlet‘s<init-param>: