* Most web.xml servlet API versions updated to 3.0 for ASYNC support * httpsession-xml is left at 2.5 to ensure compatability & remove ASYNC * Remove @Override on interface override
57 lines
1.7 KiB
XML
57 lines
1.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
|
|
<!--
|
|
- Location of the XML file that defines the root application context
|
|
- Applied by ContextLoaderListener.
|
|
-->
|
|
<!-- tag::context-param[] -->
|
|
<context-param>
|
|
<param-name>contextConfigLocation</param-name>
|
|
<param-value>
|
|
/WEB-INF/spring/*.xml
|
|
</param-value>
|
|
</context-param>
|
|
<!-- end::context-param[] -->
|
|
|
|
<!-- tag::springSessionRepositoryFilter[] -->
|
|
<filter>
|
|
<filter-name>springSessionRepositoryFilter</filter-name>
|
|
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
|
|
</filter>
|
|
<filter-mapping>
|
|
<filter-name>springSessionRepositoryFilter</filter-name>
|
|
<url-pattern>/*</url-pattern>
|
|
<dispatcher>REQUEST</dispatcher>
|
|
<dispatcher>ERROR</dispatcher>
|
|
</filter-mapping>
|
|
<!-- end::springSessionRepositoryFilter[] -->
|
|
|
|
<!--
|
|
- Loads the root application context of this web app at startup.
|
|
- The application context is then available via
|
|
- WebApplicationContextUtils.getWebApplicationContext(servletContext).
|
|
-->
|
|
<!-- tag::listeners[] -->
|
|
<listener>
|
|
<listener-class>
|
|
org.springframework.web.context.ContextLoaderListener
|
|
</listener-class>
|
|
</listener>
|
|
<!-- end::listeners[] -->
|
|
|
|
<servlet>
|
|
<servlet-name>session</servlet-name>
|
|
<servlet-class>sample.SessionServlet</servlet-class>
|
|
</servlet>
|
|
|
|
<servlet-mapping>
|
|
<servlet-name>session</servlet-name>
|
|
<url-pattern>/session</url-pattern>
|
|
</servlet-mapping>
|
|
|
|
<welcome-file-list>
|
|
<welcome-file>index.jsp</welcome-file>
|
|
</welcome-file-list>
|
|
</web-app> |