web.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">
   
    <context-param>
  <param-name>contextConfigLocation</param-name>
  <param-value>/WEB-INF/applicationContext.xml,/WEB-INF/dataAccessContext.xml,/WEB-INF/jmsContext.xml,/WEB-INF/appPushContext.xml</param-value>
 </context-param>
 
 <context-param>
        <param-name>log4jConfigLocation</param-name>
        <param-value>/WEB-INF/log4j.xml</param-value>
    </context-param>
  <context-param>
  <param-name>webAppRootKey</param-name>
        <param-value>PushLogReduce.root</param-value>
    </context-param> 
   
 <listener>
     <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
    </listener>
    <listener>
  <listener-class>com.lenovo.lps.psb.common.appShare.SystemInitListener</listener-class>
 </listener>
 <listener>
  <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
 </listener> 
 
  <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>
    <filter-mapping>
                <filter-name>CharacterEncodingFilter</filter-name>
                <url-pattern>/*</url-pattern>        
    </filter-mapping>
   
    <servlet>
     <servlet-name>ExecutePushTaskServlet</servlet-name>
     <servlet-class>com.lenovo.lps.psb.pushmarketing.servlet.ExecutePushTaskServlet</servlet-class>
    </servlet>

 <servlet-mapping>
  <servlet-name>ExecutePushTaskServlet</servlet-name>
  <url-pattern>/2.0/executepushtask</url-pattern>
 </servlet-mapping> 
   
    <servlet>
     <servlet-name>FlushDeviceDimenServlet</servlet-name>
     <servlet-class>com.lenovo.lps.psb.pushmarketing.servlet.FlushDeviceDimenServlet</servlet-class>
    </servlet>

 <servlet-mapping>
  <servlet-name>FlushDeviceDimenServlet</servlet-name>
  <url-pattern>/2.0/flushdevicedimen</url-pattern>
 </servlet-mapping> 

 <servlet>
     <servlet-name>IpToperationServlet</servlet-name>
     <servlet-class>com.lenovo.lps.psb.pushmarketing.servlet.IpToperationServlet</servlet-class>
    </servlet>

 <servlet-mapping>
  <servlet-name>IpToperationServlet</servlet-name>
  <url-pattern>/2.0/ip2operation</url-pattern>
 </servlet-mapping> 

 <servlet>
     <servlet-name>Uss2pushServlet</servlet-name>
     <servlet-class>com.lenovo.lps.psb.uss2push.servlet.Uss2pushServlet</servlet-class>
    </servlet>

 <servlet-mapping>
  <servlet-name>Uss2pushServlet</servlet-name>
  <url-pattern>/2.0/uss2push</url-pattern>
 </servlet-mapping>
 
  <servlet>
     <servlet-name>Uki2pushServlet</servlet-name>
     <servlet-class>com.lenovo.lps.psb.uki2push.servlet.UkiServlet</servlet-class>
    </servlet>

 <servlet-mapping>
  <servlet-name>Uki2pushServlet</servlet-name>
  <url-pattern>/2.0/uki2push</url-pattern>
 </servlet-mapping>
 
 <!--
 <resource-ref>
        <description>Connection Factory</description>
        <res-ref-name>jms/FailoverConnectionFactory</res-ref-name>
        <res-type>javax.jms.QueueConnectionFactory</res-type>
        <res-auth>Container</res-auth>
    </resource-ref>
 -->
 
</web-app>

你可能感兴趣的:(web.xml参考)