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

Spring 组合 C3P0配置

2012-10-12 
Spring 结合 C3P0配置beans xmlnshttp://www.springframework.org/schema/beans??? xmlns:xsihttp:/

Spring 结合 C3P0配置

<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>

热点排行