162
ComPonent-oriented develoPment and assemblY
<servlet-mapping>
<servlet-name>appServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
</web-app>
8.6.2 Web Configuration File
In addition to the web.xml, the Spring MVC component model requires an
additional configuration file that is also an XML file for handling the Web request.
is configuration file will have the name:
[name of dispatcher servlet]- servlet.xml
For example, with reference to the web.x ml defined above, the name of the con-
figuration file will be appServlet-ser vlet.xml. Alternatively, the name of the
configuration file can have a different name, and it can be specified using the con-
textConfigLocation parameter in the init-param element in the web.x ml
as shown below