1、Struts2118+Spring30+Hibernate332+DWR206Struts2.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
2、 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-s
3、earch-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.ja
4、r 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.springframew
5、ork.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
6、 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
7、.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-
8、1.3.jar xwork-core-2.1.6.jarproxool(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-ti
9、me=40000 jdbc-0.proxool.house-keeping-test-sql=SELECT GETDATE() 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
10、-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=Fatal error jdbc-0.proxool.prototype-count=2 jdbc-0.proxool.statistics-log-level=ERROR jdbc-0.proxool.test-before-use=t
11、rue jdbc-0.proxool.test-after-use=trueDWR(dwr.xml)配置文件: 项目配置文件(web.xml)配置文件: sshdwr index.html 404 /pagenotfound.html java.lang.Exception /error.html contextConfigLocation /WEB-INF/applicationContext.xml org.springframework.web.context.ContextLoaderListener org.springframework.web.context.request.Re
12、questContextListener org.springframework.web.util.IntrospectorCleanupListener openSessionInViewFilter org.springframework.orm.hibernate3.support.OpenSessionInViewFilter sessionFactoryBeanName sessionFactory singleSession true openSessionInViewFilter /* struts2 org.apache.struts2.dispatcher.ng.filter
13、.StrutsPrepareAndExecuteFilter struts2 /* admin org.logicalcobwebs.proxool.admin.servlet.AdminServlet admin /admin dwr uk.ltd.getahead.dwr.DWRServlet debug true scriptCompressed false 1 dwr /dwr/* Spring(applicationContext.xml)配置文件: com/loverit/project/test/entity/Person.hbm.xml com/loverit/project/
14、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 - org.hibernate.connection.ProxoolConnectionProvider proxool.properties DBPool PROPAGATION_REQUIRED,readOnly PROPAGATION_REQUIRED testService transactionInterceptor bean id=testService class=com.loverit.project.test.service.Te
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1