I am quite new in the Spring MVC World. Today I am studing the simple "Hello World" Example generated by STS doing: File ---> Spring Template Project ---> Spring MVC Project
In the web.xml I have the declaration of the DispatcherServlet and the request mapping handled by it...Up to here everything ok
In the web.xml I have also this part of code:
<!-- The definition of the Root Spring Container shared by all Servlets and Filters -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring/root-context.xml</param-value>
</context-param>
<!-- Creates the Spring Container shared by all Servlets and Filters -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
Reading the Spring documentation about ContextLoaderListener I read that this class execute the bootstrap of the listener to start up Spring's root WebApplicationContext but...what it means exactly?
An other doubt is about the contextConfigLocation parameter that I am passing to my context...what is exactly? Opening the /WEB-INF/spring/root-context.xml file it seems that it do not contain any configuration...is it a void configuration file created automatically by my template project creation process? what kind of configuration should contain in a Spring project?
I think tath the and the tags are not used in this Hello World project because if I delete these tag the projext still run well....is it right?