Created
January 30, 2013 11:55
-
-
Save youssefguenoun/4672821 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<web-app id="WebApp_ID" version="2.5" | |
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> | |
<display-name>desote-web-springmvc</display-name> | |
<context-param> | |
<param-name>contextConfigLocation</param-name> | |
<param-value>/WEB-INF/spring/backend-config.xml, /WEB-INF/spring/security-config.xml, /WEB-INF/spring/hdiv-config.xml</param-value> | |
</context-param> | |
<context-param> | |
<param-name>spring.profiles.active</param-name> | |
<!-- à decommenter si vous utilisez une version récente de m2e (Eclipse 3.7 et plus) --> | |
<!-- <param-value>${spring.profile}</param-value> --> | |
<param-value>dev</param-value> | |
</context-param> | |
<!-- Spring Security Char Encoding Filter--> | |
<filter> | |
<filter-name>characterEncodingFilter</filter-name> | |
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> | |
<init-param> | |
<param-name>encoding</param-name> | |
<param-value>UTF-8</param-value> | |
</init-param> | |
<init-param> | |
<param-name>forceEncoding</param-name> | |
<param-value>true</param-value> | |
</init-param> | |
</filter> | |
<!-- Spring Security default Filter--> | |
<filter> | |
<filter-name>springSecurityFilterChain</filter-name> | |
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> | |
</filter> | |
<!-- Filter's mappings --> | |
<filter-mapping> | |
<filter-name>characterEncodingFilter</filter-name> | |
<url-pattern>/*</url-pattern> | |
</filter-mapping> | |
<filter-mapping> | |
<filter-name>springSecurityFilterChain</filter-name> | |
<url-pattern>/*</url-pattern> | |
</filter-mapping> | |
<listener> | |
<listener-class> | |
org.springframework.web.context.ContextLoaderListener | |
</listener-class> | |
</listener> | |
<listener> | |
<listener-class>org.hdiv.listener.InitListener</listener-class> | |
</listener> | |
<!-- ================================================================================ --> | |
<!-- SPRING --> | |
<!-- ================================================================================ --> | |
<servlet> | |
<servlet-name>Spring</servlet-name> | |
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> | |
<init-param> | |
<param-name>contextConfigLocation</param-name> | |
<param-value>/WEB-INF/spring/presentation-config.xml</param-value> | |
</init-param> | |
<load-on-startup>1</load-on-startup> | |
</servlet> | |
<servlet-mapping> | |
<servlet-name>Spring</servlet-name> | |
<url-pattern>/web/*</url-pattern> | |
</servlet-mapping> | |
<!-- ================================================================================ --> | |
<!-- WEBAPP Config --> | |
<!-- ================================================================================ --> | |
<welcome-file-list> | |
<welcome-file>index.jsp</welcome-file> | |
</welcome-file-list> | |
<error-page> | |
<error-code>500</error-code> | |
<location>/desote-web-springmvc/web/errors/500</location> | |
</error-page> | |
<error-page> | |
<error-code>404</error-code> | |
<location>/desote-web-springmvc/web/errors/404</location> | |
</error-page> | |
<jsp-config> | |
<taglib> | |
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri> | |
<taglib-location>/WEB-INF/tlds/hdiv-c.tld</taglib-location> | |
</taglib> | |
</jsp-config> | |
</web-app> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment