123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?xml version="1.0" encoding="UTF-8"?>
- <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
- <display-name>Spring Security NTLM</display-name>
- <!-- 1. Setup two parameters: -->
- <!-- a) Spring Security's configuration file -->
- <!-- b) Logging configuration file -->
- <context-param>
- <param-name>contextConfigLocation</param-name>
- <param-value>/WEB-INF/applicationContext.xml</param-value>
- </context-param>
- <context-param>
- <param-name>log4jConfigLocation</param-name>
- <param-value>/WEB-INF/log4j.properties</param-value>
- </context-param>
- <!-- 2. Setup the Spring Security Filter Chain Proxy -->
- <filter>
- <filter-name>Spring Security Filter Chain Proxy</filter-name>
- <filter-class>org.springframework.security.util.FilterToBeanProxy</filter-class>
- <init-param>
- <param-name>targetClass</param-name>
- <param-value>org.springframework.security.util.FilterChainProxy</param-value>
- </init-param>
- </filter>
- <filter-mapping>
- <filter-name>Spring Security Filter Chain Proxy</filter-name>
- <url-pattern>/**</url-pattern>
- </filter-mapping>
- <!-- 3. Setup three listeners -->
- <!-- a) Setup a listener to connect spring with the web context -->
- <listener>
- <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
- </listener>
- <!-- b) Setup a listener to connect spring with log4J -->
- <listener>
- <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
- </listener>
- <!-- c) Setup Spring Security to subscribe to http session events in the web context -->
- <listener>
- <listener-class>org.springframework.security.ui.session.HttpSessionEventPublisher</listener-class>
- </listener>
- <welcome-file-list>
- <welcome-file>index.html</welcome-file>
- <welcome-file>index.htm</welcome-file>
- <welcome-file>index.jsp</welcome-file>
- <welcome-file>default.html</welcome-file>
- <welcome-file>default.htm</welcome-file>
- <welcome-file>default.jsp</welcome-file>
- </welcome-file-list>
- </web-app>
|