Guest User

Untitled

a guest
Apr 7th, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.21 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.     <!-- The definition of the Root Spring Container shared by all Servlets and Filters -->
  7.     <context-param>
  8.         <param-name>contextConfigLocation</param-name>
  9.         <param-value>/WEB-INF/spring/root-context.xml</param-value>
  10.     </context-param>
  11.    
  12.     <!-- Creates the Spring Container shared by all Servlets and Filters -->
  13.     <listener>
  14.         <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  15.     </listener>
  16.  
  17.     <!-- Processes application requests -->
  18.     <servlet>
  19.         <servlet-name>appServlet</servlet-name>
  20.         <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
  21.         <init-param>
  22.             <param-name>contextConfigLocation</param-name>
  23.             <param-value>/WEB-INF/spring/appServlet/servlet-context.xml</param-value>
  24.         </init-param>
  25.         <load-on-startup>1</load-on-startup>
  26.     </servlet>
  27.        
  28.     <servlet-mapping>
  29.         <servlet-name>appServlet</servlet-name>
  30.         <url-pattern>/</url-pattern>
  31.     </servlet-mapping>
  32.  
  33. </web-app>
Add Comment
Please, Sign In to add comment