JSP手动配置Struts+Hibernate+Spring要领及步骤

来源:百度知道 编辑:UC知道 时间:2024/06/30 16:46:42
详细说出 最基本的配置文件,及基本内容。
按框架使用顺序 写。
在传授一些 经验~~~

为什么要手动配置呢,现在不都是快速开发吗。

ssh框架整合实例子-配置文件

主要配置文件如下:

1.web.xml:

配置actionservlet类和映射
配置Listener,加载spring配置

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

<context-param>
<param-name>contextConfigLocation</param-name>
<param-va