Near the top of its web.xml file is
Then further on down there isCode:<!-- The master configuration file for this Spring web application --> <context-param> <param-name>contextConfigLocation</param-name> <param-value> /WEB-INF/config/web-application-config.xml </param-value> </context-param>
Question 1: I didn't realize that you could use init-param for Spring's contextConfigLocation within the servlet section. I've always seen contextConfigLocation set up via the context-param. If I were to specify the contextConfigLocation only within the servlet section does that mean I could have multiple Spring "containers" (if I had multiple servlet sections)? Does that work?Code:<!-- The front controller of this Spring Web application, responsible for handling all application requests --> <servlet> <servlet-name>Spring MVC Dispatcher Servlet</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value></param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet>
Question 2: What's the purpose of the booking-faces web.xml specifying nothing for contextConfigLocation within the servlet section?


Reply With Quote