[html]
<?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: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.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">
<bean id="phrDS"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName"
value="org.logicalcobwebs.proxool.ProxoolDriver" />
<property name="url" value="proxool.phrConn" />
</bean>
<bean id="cdaDS"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName"
value="org.logicalcobwebs.proxool.ProxoolDriver" />
<property name="url" value="proxool.cdaConn" />
</bean>
<!-- CDA
<bean id="cdaDS"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName">
<value>oracle.jdbc.driver.OracleDriver</value>
</property>
<property name="url">
<value>${dbconn.cda.url}</value>
</property>
<property name="username">
<value>${dbconn.cda.userName}</value>
</property>
<property name="password">
<value>${dbconn.cda.password}</value>
</property>
</bean> -->
<!--文档数据库数据源配置-Oracle数据源配置 -->
<bean id="docstoreDS"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName">
<value>oracle.jdbc.driver.OracleDriver</value>
</property>
<property name="url">
<value>${dbconn.docstore.url}</value>
</property>
<property name="username">
<value>${dbconn.docstore.userName}</value>
</property>
<property name="password">
<value>${dbconn.docstore.password}</value>
</property>
</bean>
<bean id="phrSessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="phrDS" />
<property name="mappingDirectoryLocations">
<list>
<value>${dbconn.docstore.mappingDirectory}</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
${dbconn.docstore.dialect}
</prop>
<prop key="hibernate.show_sql">
${dbconn.docstore.showsql}
</prop>
<prop key="hibernate.format_sql">true</prop>
<prop key="hibernate.cache.use_second_level_cache">
false
</prop>
<prop key="hibernate.cache.provider_class">
org.hibernate.cache.EhCacheProvider
</prop>
<prop key="hibernate.cache.use_query_cache">false</prop>
<!--<prop key="current_session_context_class">jta</prop>
<prop key="hibernate.transaction.factory_class">
补充:web前端 , HTML 5 ,