Advertisement
Guest User

Untitled

a guest
Mar 30th, 2014
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.35 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
  3.     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
  5.  
  6.     <servlet>
  7.         <servlet-name>calzoneServlet</servlet-name>
  8.         <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
  9.         <load-on-startup>1</load-on-startup>
  10.     </servlet>
  11.    
  12.     <servlet-mapping>
  13.         <servlet-name>default</servlet-name>
  14.         <url-pattern>*.css</url-pattern>
  15.         <url-pattern>*.js</url-pattern>
  16.         <url-pattern>*.png</url-pattern>
  17.         <url-pattern>*.jpg</url-pattern> <!-- *.html -->   
  18.         <url-pattern>*.json</url-pattern>
  19.         <url-pattern>*.html</url-pattern>
  20.         <url-pattern>*.less</url-pattern>
  21.         <url-pattern>*.eot</url-pattern>
  22.         <url-pattern>*.svg</url-pattern>
  23.         <url-pattern>*.ttf</url-pattern>
  24.         <url-pattern>*.woff</url-pattern>
  25.     </servlet-mapping>
  26.    
  27.     <servlet-mapping>
  28.         <servlet-name>calzoneServlet</servlet-name>
  29.         <url-pattern>/</url-pattern> <!-- *.html -->   
  30.     </servlet-mapping>
  31.    
  32.     <listener>
  33.         <listener-class>
  34.                   org.springframework.web.context.ContextLoaderListener
  35.         </listener-class>
  36.     </listener>
  37.    
  38.     <context-param>
  39.         <param-name>contextConfigLocation</param-name>
  40.         <param-value>
  41.             /WEB-INF/calzoneServlet-servlet.xml,
  42.             /WEB-INF/config/spring-security.xml,
  43.             /WEB-INF/classes/applicationContext.xml
  44.         </param-value>
  45.     </context-param>
  46.  
  47.     <!--   <display-name>Archetype Created Web Application</display-name>
  48.         <resource-ref>
  49.         <description>
  50.             Resource reference to a factory for javax.mail.Session
  51.             instances that may be used for sending electronic mail
  52.             messages, preconfigured to connect to the appropriate
  53.             SMTP server.
  54.         </description>
  55.         <res-ref-name>
  56.             mail/Session
  57.         </res-ref-name>
  58.         <res-type>
  59.             javax.mail.Session
  60.         </res-type>
  61.         <res-auth>
  62.             Container
  63.         </res-auth>
  64.     </resource-ref> -->
  65.    
  66.     <!-- Spring Security -->
  67.     <filter>
  68.         <filter-name>springSecurityFilterChain</filter-name>
  69.         <filter-class>
  70.                   org.springframework.web.filter.DelegatingFilterProxy
  71.         </filter-class>
  72.     </filter>
  73.  
  74.     <filter-mapping>
  75.         <filter-name>springSecurityFilterChain</filter-name>
  76.         <url-pattern>/*</url-pattern>
  77.     </filter-mapping>
  78. </web-app>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement