为了Spring和Strust2的完美结合,需要在web.xml文件加入如下几部分代码
1、Spring配置文件
默认情况下,Spring配置文件为applicationContext.xml,该文件保存在src目录下。
2、配置Spring监听器
org.springframework.web.context.ContextLoaderListener
为了Spring和Strust2的完美结合,需要在web.xml文件加入如下几部分代码
1、Spring配置文件
默认情况下,Spring配置文件为applicationContext.xml,该文件保存在src目录下。
2、配置Spring监听器
org.springframework.web.context.ContextLoaderListener
| 评论 |
|
|