• web.xml


    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns="http://java.sun.com/xml/ns/javaee"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
        metadata-complete="true" version="3.0">
    
        <display-name>Yundaex WMS PC Web Application</display-name>
    
        <!-- context initial parameter -->
        <context-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>
                classpath:applicationContext-common-dal.xml
                classpath:applicationContext-common-security.xml
                classpath:applicationContext.xml
                
                classpath:applicationContext-security.xml
                classpath:applicationContext-basicdata.xml
                classpath:applicationContext-datasource.xml
                classpath:applicationContext-core.xml
                classpath:applicationContext-inbound-core.xml
                classpath:applicationContext-outbound-core.xml
                classpath:applicationContext.xml
                classpath:wms-explicit-security.xml
                classpath:applicationContext-multipart.xml 
                classpath:applicationContext-report.xml
                classpath:applicationContext-sysmgr.xml
                classpath:applicationContext-cache.xml
                classpath:applicationContext-strategy-core.xml
        </param-value>
        </context-param>
    
        <!-- catalog configuration -->
        <context-param>
            <param-name>org.apache.commons.chain.CONFIG_CLASS_RESOURCE</param-name>
            <param-value>catalog.xml</param-value>
        </context-param>
    
        <!-- Enable data security -->
        <context-param>
            <param-name>EnableDataSecurity</param-name>
            <param-value>true</param-value>
        </context-param>
    
        <!-- catalog paramter config -->
        <context-param>
            <param-name>org.apache.commons.chain.CONFIG_ATTR</param-name>
            <param-value>catalog</param-value>
        </context-param>
    
        <welcome-file-list>
            <welcome-file>/login.html</welcome-file>
        </welcome-file-list>
    
        <!-- context loader listener -->
        <listener>
            <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
        </listener>
    
        <!-- web context loader listener -->
        <listener>
            <listener-class>com.yundaex.wms.security.listener.WMSWebContextLoaderListener</listener-class>
        </listener>
    
        <!-- config data context loader listener -->
        <listener>
            <listener-class>com.yundaex.wms.config.listener.SysConfigDataContextLoaderListener</listener-class>
        </listener>
    
        <!-- basic data context loader listener -->
        <listener>
            <listener-class>com.yundaex.wms.basicdata.listener.BasicDataContextLoaderListener</listener-class>
        </listener>
    
        <!-- core configuration context loader -->
        <listener>
            <listener-class>com.yundaex.wms.core.listener.CoreConfigurationContextLoaderListener</listener-class>
        </listener>
    
        <!-- wms chain listener -->
        <listener>
            <listener-class>com.yundaex.wms.core.chain.WMSChainListener</listener-class>
        </listener>
    
        <listener>
            <listener-class>com.yundaex.wms.multipart.listener.ExcelSpecLoaderListener</listener-class>
        </listener>
        
        <listener>
            <listener-class>com.yundaex.wms.outbound.listener.OutboundContextLoaderListener</listener-class>
        </listener>
    
        <!-- character 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>
        <filter-mapping>
            <filter-name>CharacterEncodingFilter</filter-name>
            <url-pattern>/*</url-pattern>
        </filter-mapping>
    
        <filter>
            <filter-name>exceptionFilter</filter-name>
            <filter-class>com.yundaex.common.exception.filter.ExceptionFilter</filter-class>
        </filter>
        <filter-mapping>
            <filter-name>exceptionFilter</filter-name>
            <url-pattern>/*</url-pattern>
        </filter-mapping>
    
        <!-- multipart detection -->
        <filter>
            <filter-name>multipartFilter</filter-name>
            <filter-class>org.springframework.web.multipart.support.MultipartFilter</filter-class>
        </filter>
        <filter-mapping>
            <filter-name>multipartFilter</filter-name>
            <url-pattern>/*</url-pattern>
        </filter-mapping>
    
        <!-- PLEASE DON'T REMOVE THIS COMMENT SEGEMENT integration spring security -->
    
        <filter>
            <filter-name>springSecurityFilterChain</filter-name>
            <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
        </filter>
        <filter-mapping>
            <filter-name>springSecurityFilterChain</filter-name>
            <url-pattern>/*</url-pattern>
        </filter-mapping>
    
        <servlet>
            <servlet-name>wms-springmvc</servlet-name>
            <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
        </servlet>
    
        <servlet-mapping>
            <servlet-name>wms-springmvc</servlet-name>
            <url-pattern>*.do</url-pattern>
        </servlet-mapping>
        
    </web-app>
  • 相关阅读:
    第一个vbscript程序
    判定VBscript方法是否存在
    我的模块加载系统 v24
    libnet/libnids库函数介绍
    程序员应知道的12件事
    基于poll实现的echo服务器
    师者
    OSI/RM参考模型和TCP/IP协议的关系
    TCP(虚电路)和UDP的区别
    python中 __name__及__main()__的妙处
  • 原文地址:https://www.cnblogs.com/tonggc1668/p/6519342.html
Copyright © 2020-2023  润新知