2013-04-29 21:37:10 +03:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2013-08-01 23:53:50 +03:00
|
|
|
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
|
|
|
|
|
xsi:schemaLocation="
|
2013-04-29 22:06:30 +03:00
|
|
|
http://java.sun.com/xml/ns/javaee
|
2015-07-23 16:54:23 +03:00
|
|
|
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"
|
|
|
|
|
>
|
2013-04-29 21:37:10 +03:00
|
|
|
|
2013-08-01 23:53:50 +03:00
|
|
|
<display-name>Spring MVC XML Application</display-name>
|
2013-04-29 21:37:10 +03:00
|
|
|
|
2013-08-01 23:53:50 +03:00
|
|
|
<!-- Spring root -->
|
|
|
|
|
<context-param>
|
|
|
|
|
<param-name>contextClass</param-name>
|
|
|
|
|
<param-value>
|
2013-07-26 11:40:11 +03:00
|
|
|
org.springframework.web.context.support.AnnotationConfigWebApplicationContext
|
|
|
|
|
</param-value>
|
2013-08-01 23:53:50 +03:00
|
|
|
</context-param>
|
|
|
|
|
<context-param>
|
|
|
|
|
<param-name>contextConfigLocation</param-name>
|
2016-03-03 06:20:44 -06:00
|
|
|
<param-value>com.baeldung.spring</param-value>
|
2013-08-01 23:53:50 +03:00
|
|
|
</context-param>
|
|
|
|
|
|
|
|
|
|
<listener>
|
|
|
|
|
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
|
|
|
|
</listener>
|
|
|
|
|
|
|
|
|
|
<!-- Spring child -->
|
|
|
|
|
<servlet>
|
|
|
|
|
<servlet-name>mvc</servlet-name>
|
|
|
|
|
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
|
|
|
|
<load-on-startup>1</load-on-startup>
|
|
|
|
|
</servlet>
|
|
|
|
|
<servlet-mapping>
|
|
|
|
|
<servlet-name>mvc</servlet-name>
|
|
|
|
|
<url-pattern>/</url-pattern>
|
|
|
|
|
</servlet-mapping>
|
|
|
|
|
|
|
|
|
|
<!-- additional config -->
|
|
|
|
|
|
|
|
|
|
<session-config>
|
|
|
|
|
<session-timeout>10</session-timeout>
|
|
|
|
|
</session-config>
|
|
|
|
|
<welcome-file-list>
|
2014-07-17 01:36:40 +05:30
|
|
|
<welcome-file>index.jsp</welcome-file>
|
2013-08-01 23:53:50 +03:00
|
|
|
</welcome-file-list>
|
2013-04-29 21:37:10 +03:00
|
|
|
|
2016-10-31 12:07:36 +05:30
|
|
|
<error-page>
|
2016-11-02 21:53:19 +05:30
|
|
|
<location>/errors</location>
|
2016-10-31 12:07:36 +05:30
|
|
|
</error-page>
|
2013-04-29 21:37:10 +03:00
|
|
|
</web-app>
|