Struts2118+Spring30+Hibernate332+DWR206.docx

上传人:b****6 文档编号:5363304 上传时间:2022-12-15 格式:DOCX 页数:10 大小:19.31KB
下载 相关 举报
Struts2118+Spring30+Hibernate332+DWR206.docx_第1页
第1页 / 共10页
Struts2118+Spring30+Hibernate332+DWR206.docx_第2页
第2页 / 共10页
Struts2118+Spring30+Hibernate332+DWR206.docx_第3页
第3页 / 共10页
Struts2118+Spring30+Hibernate332+DWR206.docx_第4页
第4页 / 共10页
Struts2118+Spring30+Hibernate332+DWR206.docx_第5页
第5页 / 共10页
点击查看更多>>
下载资源
资源描述

Struts2118+Spring30+Hibernate332+DWR206.docx

《Struts2118+Spring30+Hibernate332+DWR206.docx》由会员分享,可在线阅读,更多相关《Struts2118+Spring30+Hibernate332+DWR206.docx(10页珍藏版)》请在冰豆网上搜索。

Struts2118+Spring30+Hibernate332+DWR206.docx

Struts2118+Spring30+Hibernate332+DWR206

Struts2.1.8+Spring3.0+Hibernate3.3.2+DWR2.0.6

项目所需要用的包(包含常用包):

antlr-2.7.6.jar

aopalliance-1.0.jar

asm-all-3.2.jar

cglib-2.2.jar

commons-beanutils-1.8.2.jar

commons-codec-1.4.jar

commons-collections-3.2.1.jar

commons-digester-2.0.jar

commons-fileupload-1.2.1.jar

commons-io-1.4.jar

commons-lang-2.4.jar

commons-logging-1.1.1.jar

commons-validator-1.3.1.jar

dom4j-1.7.jar

dwr-2.06.jar

ehcache-1.2.3.jar

ejb3-persistence.jar

ezmorph-1.0.3.jar

freemarker-2.3.15.jar

hibernate-annotations.jar

hibernate-commons-annotations.jar

hibernate-entitymanager.jar

hibernate-search-3.1.1.GA.jar

hibernate-validator-4.0.2.GA.jar

hibernate3.jar

jakarta-oro-2.0.8.jar

javassist-3.9.0.GA.jar

json-lib-2.3-jdk15.jar

jstl.jar

jta-1.1.jar

jtds-1.2.5.jar

junit-4.8.1.jar

log4j-1.2.8.jar

ognl-2.7.3.jar

org.springframework.aop-3.0.0.RELEASE.jar

org.springframework.asm-3.0.0.RELEASE.jar

org.springframework.aspects-3.0.0.RELEASE.jar

org.springframework.beans-3.0.0.RELEASE.jar

org.springframework.context-3.0.0.RELEASE.jar

org.springframework.context.support-3.0.0.RELEASE.jar

org.springframework.core-3.0.0.RELEASE.jar

org.springframework.expression-3.0.0.RELEASE.jar

org.springframework.instrument-3.0.0.RELEASE.jar

org.springframework.instrument.tomcat-3.0.0.RELEASE.jar

org.springframework.jdbc-3.0.0.RELEASE.jar

org.springframework.jms-3.0.0.RELEASE.jar

org.springframework.orm-3.0.0.RELEASE.jar

org.springframework.oxm-3.0.0.RELEASE.jar

org.springframework.test-3.0.0.RELEASE.jar

org.springframework.transaction-3.0.0.RELEASE.jar

org.springframework.web-3.0.0.RELEASE.jar

org.springframework.web.portlet-3.0.0.RELEASE.jar

org.springframework.web.servlet-3.0.0.RELEASE.jar

org.springframework.web.struts-3.0.0.RELEASE.jar

poi-3.5-FINAL-20090928.jar

proxool-0.9.1.jar

proxool-cglib.jar

pull-parser-2.1.10.jar

slf4j-api-1.5.10.jar

slf4j-log4j12-1.5.10.jar

slf4j-nop-1.5.10.jar

standard.jar

struts2-convention-plugin-2.1.8.1.jar

struts2-core-2.1.8.1.jar

struts2-dwr-plugin-2.1.8.1.jar

struts2-json-plugin-2.1.8.1.jar

struts2-spring-plugin-2.1.8.1.jar

velocity-1.5.jar

velocity-tools-1.3.jar

xwork-core-2.1.6.jar

proxool(proxool.properties)配置文件:

jdbc-0.proxool.alias=DBPool

jdbc-0.proxool.driver-url=jdbc:

jtds:

sqlserver:

//localhost:

1433/student

jdbc-0.proxool.driver-class=net.sourceforge.jtds.jdbc.Driver

jdbc-0.user=sa

jdbc-0.password=**********(哈哈,密码省略)

jdbc-0.proxool.house-keeping-sleep-time=40000

jdbc-0.proxool.house-keeping-test-sql=SELECTGETDATE()

jdbc-0.proxool.maximum-connection-count=100

jdbc-0.proxool.minimum-connection-count=25

jdbc-0.proxool.maximum-connection-lifetime=18000000

jdbc-0.proxool.simultaneous-build-throttle=5

jdbc-0.proxool.recently-started-threshold=40000

jdbc-0.proxool.overload-without-refusal-lifetime=50000

jdbc-0.proxool.maximum-active-time=60000

jdbc-0.proxool.verbose=true

jdbc-0.proxool.trace=true

jdbc-0.proxool.fatal-sql-exception=Fatalerror

jdbc-0.proxool.prototype-count=2

jdbc-0.proxool.statistics-log-level=ERROR

jdbc-0.proxool.test-before-use=true

jdbc-0.proxool.test-after-use=true

DWR(dwr.xml)配置文件:

xmlversion="1.0"encoding="UTF-8"?

>

DOCTYPEdwrPUBLIC"-//GetAheadLimited//DTDDirectWebRemoting2.0//EN""http:

//getahead.org/dwr/dwr20.dtd">

--Spring配置文件中的bean:

aclManager-->

项目配置文件(web.xml)配置文件:

xmlversion="1.0"encoding="UTF-8"?

>

xsi="http:

//www.w3.org/2001/XMLSchema-instance"

xmlns=""xmlns:

web=""

xsi:

schemaLocation=""

id="WebApp_ID"version="2.5">

sshdwr

index.html

--页面不存在-->

404

/pagenotfound.html

--错误页面-->

java.lang.Exception

/error.html

--spring配置文件读取路径-->

contextConfigLocation

/WEB-INF/applicationContext.xml

--增加spring监听(载入SpringApplicationContext)-->

org.springframework.web.context.ContextLoaderListener

--扩展springbean的作用域有request,session,globalsession等-->

org.springframework.web.context.request.RequestContextListener

--Spring刷新Introspector防止内存泄露-->

org.springframework.web.util.IntrospectorCleanupListener

--spring的session管理-->

openSessionInViewFilter

org.springframework.orm.hibernate3.support.OpenSessionInViewFilter

sessionFactoryBeanName

sessionFactory

singleSession

true

openSessionInViewFilter

/*

--struts2.1.8配置-->

struts2

org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

struts2

/*

--proxool的web监控-->

admin

org.logicalcobwebs.proxool.admin.servlet.AdminServlet

admin

/admin

--DWR配置-->

dwr

uk.ltd.getahead.dwr.DWRServlet

debug

true

scriptCompressed

false

1

dwr

/dwr/*

Spring(applicationContext.xml)配置文件:

xmlversion="1.0"encoding="UTF-8"?

>

//www.springframework.org/schema/beans"

xmlns:

xsi="http:

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

jee="http:

//www.springframework.org/schema/jee"

xmlns:

tx="http:

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

context="http:

//www.springframework.org/schema/context"

xsi:

schemaLocation="http:

//www.springframework.org/schema/beans

http:

//www.springframework.org/schema/beans/spring-beans-3.0.xsd

http:

//www.springframework.org/schema/tx

http:

//www.springframework.org/schema/tx/spring-tx-3.0.xsd

http:

//www.springframework.org/schema/jee

http:

//www.springframework.org/schema/jee/spring-jee-3.0.xsd

http:

//www.springframework.org/schema/context

http:

//www.springframework.org/schema/context/spring-context-3.0.xsd">

com/loverit/project/test/entity/Person.hbm.xml

com/loverit/project/test/entity/Sex.hbm.xml

${hibernate.dialect}

${hibernate.show_sql}

${hibernate.jdbc.batch_size}

${hibernate.cache.use_query_cache}

${hibernate.cache.provider_class}

--

${hibernate.hbm2ddl.auto}

-->

--proxool连接池-->

org.hibernate.connection.ProxoolConnectionProvider

proxool.properties

DBPool

--定义事务管理-->

--定义事务管理拦截器-->

PROPAGATION_REQUIRED,readOnly

PROPAGATION_REQUIRED

--定义代理自动管理事务-->

--指定需要Spring管理事务的Bean-->

testService

--调用事务管理拦截器-->

transactionInterceptor

--测试类(本例未用到)-->

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 高等教育 > 其它

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1