ssh--web.xml

来源:互联网 发布:吉他乐理视频 知乎 编辑:程序博客网 时间:2024/06/02 04:03
<?xml version="1.0" encoding="UTF-8"?>


-<web-app version="2.5" id="WebApp_ID" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">


<display-name>crm_28</display-name>


<!-- 配置Spring框架整合WEB的监听器 -->






-<listener>


<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>


</listener>




-<context-param>


<param-name>contextConfigLocation</param-name>


<param-value>classpath:applicationContext.xml</param-value>


</context-param>


<!-- 解决延迟加载的问题 -->






-<filter>


<filter-name>OpenSessionInViewFilter</filter-name>


<filter-class>org.springframework.orm.hibernate5.support.OpenSessionInViewFilter</filter-class>


</filter>




-<filter-mapping>


<filter-name>OpenSessionInViewFilter</filter-name>


<url-pattern>/*</url-pattern>


</filter-mapping>


<!-- 配置Struts2框架的核心的过滤器 -->






-<filter>


<filter-name>struts2</filter-name>


<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>


</filter>




-<filter-mapping>


<filter-name>struts2</filter-name>


<url-pattern>/*</url-pattern>


</filter-mapping>


<!-- 程序出现了500的异常,跳转到error.jsp的页面 -->






-<error-page>


<error-code>500</error-code>


<location>/jsp/error.jsp</location>


</error-page>




-<welcome-file-list>


<welcome-file>login.jsp</welcome-file>


</welcome-file-list>


</web-app>
原创粉丝点击