web.xml 配置Spring 与 struts
2015-01-16 09:30
796 查看
<?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" id="WebApp_ID" version="3.0"> <display-name>SMS</display-name> <!--指定Spring 的配置文件 默认从web根目录寻找配置文件,我们可以通过spring提供的classpath:前缀指定从类路径下寻找--> <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:beans.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>/*</url-pattern> </filter-mapping> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> </web-app>
相关文章推荐
- shh整合后web.xml、spring配置文件和struts.xml的内容
- spring在web.xml中和在struts中的不同配置
- spring在web.xml中和在struts中的不同配置
- spring在web.xml中和在struts中的不同配置
- spring在web.xml中和在struts中的不同配置
- Struts+Spring+Hibernate实现上传下载(spring的最低框架配置,web.xml等)
- spring在web.xml中和在struts中的不同配置
- 基于注解的Struts2+Spring2.5+Hibernate3.3的Spring 配置文件,struts配置文件,web.xml配置文件的例子
- web.xml集成Spring,Struts配置文件说明
- spring在web.xml中和在struts中的不同配置
- spring在web.xml中和在struts中的不同配置
- ssh整合!Struts.xml、hibernate与spring整合的applicationContext.xml、web.xml文件的配置!
- spring在web.xml中和在struts中的不同配置
- spring在web.xml中和在struts中的不同配置
- shh整合后web.xml、spring配置文件和struts.xml的内容
- spring在web.xml中和在struts中的不同配置
- struts2+spring中的web.xml配置
- spring在web.xml中和在struts中的不同配置
- Struts配置文件详解,web.xml以及struts-cofig.xml,以及struts-cofig.xml中各个标签的作用。
- Struts2.0配置文件(web.xml)