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

2014-11-24 08:52:00 来源: 作者: 浏览: 0

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


1、Spring配置文件


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




contextConfigLocation
classpath:applicationContext.xml


2、配置Spring监听器




org.springframework.web.context.ContextLoaderListener


-->

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: