基于S2SH框架的项目—web.xml文件配置

2014-11-24 08:52:00 · 作者: · 浏览: 2

为了Spring和Strust2的完美结合,需要在web.xml文件加入如下几部分代码


1、Spring配置文件


默认情况下,Spring配置文件为applicationContext.xml,该文件保存在src目录下。




contextConfigLocation
classpath:applicationContext.xml


2、配置Spring监听器




org.springframework.web.context.ContextLoaderListener