首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

ssh 中施用c3p0 的连接池配置(转)

2012-11-08 
ssh 中使用c3p0 的连接池配置(转)applicationContext.xml 文件:?xml version1.0 encodingUTF-8?b

ssh 中使用c3p0 的连接池配置(转)
applicationContext.xml 文件:   
  
<?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:jee="http://www.springframework.org/schema/jee"  
     xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd   
             http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.0.xsd">   
     <bean id="dataSource"  
        />   
         </property>   
         <property name="mappingResources">   
             <list>   
                 <value>com/xh/hibernate/vo/User.hbm.xml</value>   
             </list>   
         </property>   
         <property name="hibernateProperties">   
             <props>   
                 <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>   
                 <prop key="hibernate.show_sql">true</prop>   
                 <prop key="hibernate.generate_statistics">true</prop>   
                 <prop key="hibernate.connection.release_mode">auto</prop>   
                 <prop key="hibernate.autoReconnect">true</prop>   
             </props>   
         </property>   
     </bean>   
</beans>   

热点排行