spring和struts2整合的web.xml文件
来源:互联网 发布:尘埃拉力赛 知乎 编辑:程序博客网 时间:2024/06/09 21:49
<?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" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">
<display-name></display-name>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<!-- spring配置文件位置 -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:spring.xml</param-value>
</context-param>
<!-- spring监听器 -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-- 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>*.action</url-pattern>
</filter-mapping>
</web-app>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">
<display-name></display-name>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<!-- spring配置文件位置 -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:spring.xml</param-value>
</context-param>
<!-- spring监听器 -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-- 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>*.action</url-pattern>
</filter-mapping>
</web-app>
0 0
- spring和struts2整合的web.xml文件
- struts2与spring整合web.xml加入的配置
- struts2整合spring 时web.xml的配置
- Struts2 + Spring + Hibernate 整合 web.xml的一般配置
- spring整合struts2之web.xml配置
- ssh整合!Struts.xml、hibernate与spring整合的applicationContext.xml、web.xml文件的配置!
- struts2和spring的整合
- Struts2和Spring的整合
- Spring和Struts2的整合
- 关于flex和spring+hibernate整合web.xml的错误
- Struts2和Spring整合
- Struts2和Spring整合
- Spring和Struts2整合
- Struts2和Spring整合
- Spring和struts2整合
- shh整合后web.xml、spring配置文件和struts.xml的内容
- shh整合后web.xml、spring配置文件和struts.xml的内容
- Hibernate3.5.4---web application的xml和annotation环境搭建,整合struts2.1.8
- golang实现兼容Linux和Windows的路径处理
- Salesforce Integration based on Rest API
- VMware vSphere esxi6.0+vCenter Server Appliance6.0+vSphere Client6.0和Web Client访问
- 安卓动态监听服务的工具类
- JavaWeb复习三----JSP
- spring和struts2整合的web.xml文件
- android6.0以后视频录制
- 访问网络文件共享服务CIFS与NFS
- CentOS 7.0 进入单用户模式修改Root密码
- 关于引用类型与基本类型
- Codeforces Round #361 (Div. 2)B
- Ubuntu下安装Tengine服务器
- C#编程--ribbon界面介绍
- 《深入理解JAVA虚拟机》学习笔记(七)JAVA多态的实现:动态分派