<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>/config.xml</value>
</list>
</property>
</bean>
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName" value="${ORACLE_DRIVER}" />
<property name="url" value="${ORACLE_URL}" />
<property name="username" value="${ORACLE_USER}" />
<property name="password" value="${ORACLE_PWD}" />
<property name="maxActive" value="5" />
<property name="maxIdle" value="10" />
<property name="minIdle" value="2" />
<property name="maxWait" value="5" />
</bean>
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref local="dataSource" />
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</prop>
</props>
</property>
</bean>
<bean id="transactionManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory">
<ref local="sessionFactory" />
</property>
</bean>
<bean id="dao" class="dao.impl.DaoImpl">
<property name="sessionFactory">
<ref local="sessionFactory" />
</property>
</bean>
<bean id="daoProxy"
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property name="transactionManager">
<ref bean="transactionManager" />
</property>
<property name="target">
<ref bean="dao" />
</property>
<property name="transactionAttributes">
<props>
<prop key="query*">PROPAGATION_REQUIRED,-Exception</prop>
</props>
</property>
</bean>
</beans>
分享到:
相关推荐
《疯狂Ajax讲义:Prototype/jQuery+DWR+Spring+Hibernate整合开发》是《基于J2EE的Ajax宝典》的第二版。《基于J2EE的Ajax宝典》面市近2年,作为Ajax领域最全面、实用的图书,一直深受读者的好评。全书主要分为三个...
简单struts+spring+hibernate搭建,配置,适合初学者
使用Struts + Spring + Hibernate完成用户登陆笔记使用Struts + Spring + Hibernate完成用户登陆笔记
以上是springmvc+spring+hibernate整合基于eclipse,oracle开发
spring mvc + spring + hibernate 全注解整合开发视频教程 11
spring mvc + spring + hibernate 全注解整合开发视频教程 12
spring mvc + spring + hibernate 全注解整合开发视频教程 04
Struts+Spring+Hibernate开发实例.pdf
spring mvc + spring + hibernate 全注解整合开发视频教程 06.haozip03
gwt+spring+hibernate整合例子,导入myeclipse中(要安gwt插件)即可用,数据库自己去代码中查看。包是精简版的,去掉很多不必要的包
struts1+spring+hibernate整合所用全部jar包
DWR+Struts+spring+hibernate的订货系统,自己添加的dwr功能
Struts2+Spring+Hibernate+Jsp+Mysql5 项目申报系统.zip
本文并不想介绍Struts,Spring,Hibernate的原理系统架构等,本文地目的是通过一个较复杂地实例介绍如何整合Struts,Spring,Hibernate,网上现有的例子虽然也能达到目的,但功能都比较单一,复杂的例子时会有...
Ajax+Spring+HibernateAjax+Spring+HibernateAjax+Spring+HibernateAjax+Spring+HibernateAjax+Spring+HibernateAjax+Spring+HibernateAjax+Spring+HibernateAjax+Spring+Hibernate
Spring+hibernate整合源代码 结束Sping+hibernate 的使用方法 包括演示示例
通过简单的实例来说明SSH(Struts+Spring+Hibernate)的结合,让你对SSH有一个充分的了解。
Struts2+Spring+hibernate中对action的单元测试环境搭建[总结].pdf
SpringMVC+Spring+Hibernate+Oracle 实现图书管理(CRUD) 一个简单的图书管理系统。
适合初学者,快速了解struts+spring+hibernate开发 注册小程序 含有SSHjar包