读书人

Spring 组合 C3P0配置

发布时间: 2012-10-12 10:17:04 作者: rapoo

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>

读书人网 >软件架构设计

热点推荐