SSH框架基本配置文件

发布时间:2013-03-13 20:42:45   来源:文档文库   
字号:

web.xml配置文件

xmlns="http://java.sun.com/xml/ns/javaee"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://java.sun.com/xml/ns/javaee

http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

encodingFilter

org.springframework.web.filter.CharacterEncodingFilter

encoding

UTF-8

forceEncoding

true

encodingFilter

/*

struts2

org.apache.struts2.dispatcher.FilterDispatcher

struts2

/*

contextConfigLocation

/WEB-INF/applicationContext-*.xml,classpath*:applicationContext*.xml

org.springframework.web.context.ContextLoaderListener

lazyLoadingFilter

org.springframework.orm.hibernate3.support.OpenSessionInViewFilter

lazyLoadingFilter

*.action

index.jsp

Hibernate 配置文件

"-//Hibernate/Hibernate Configuration DTD 3.0//EN"

"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

org.hibernate.dialect.MySQLDialect

jdbc:mysql://localhost:3306/onlineexam

root

root

com.mysql.jdbc.Driver

test

true

update

Struts 配置文件

"http://struts.apache.org/dtds/struts-2.1.dtd">

listStudent.action

Spring 主配置文件

xmlns="http://www.springframework.org/schema/beans"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:p="http://www.springframework.org/schema/p"

xmlns:aop="http://www.springframework.org/schema/aop"

xmlns:tx="http://www.springframework.org/schema/tx"

xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd

http://www.springframework.org/schema/aop

http://www.springframework.org/schema/aop/spring-aop-2.5.xsd

http://www.springframework.org/schema/tx

http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">

class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">

value="classpath:hibernate.cfg.xml">

Spring dao层配置文件

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">

Spring service层配置文件

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">

Spring action层配置文件

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">

本文来源:https://www.2haoxitong.net/k/doc/c723b0f94693daef5ef73d96.html

《SSH框架基本配置文件.doc》
将本文的Word文档下载到电脑,方便收藏和打印
推荐度:
点击下载文档

文档为doc格式