
167
enterPrise Coda using sPring
</servlet>
<servlet-mapping>
<servlet-name>appServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
</web-app>
e request for this application will be handled by the DispatcherServlet. e
Web configuration file for this application is ser vlet-context.xml, and it has
been mentioned using the contextConfigLocation element. e ser vlet-
context.xml is shown below:
<?xml version = "1.0" encoding = "UTF-8"?>
<beans xmlns = "http://www.springframework.org/schema/beans"
….>
<!— Scans within the base package of the application for
@Components to
configure as beans— >
<!— @Controller, @Service, @Configuration, ...