jdbc-datasource-oracle.xml 1.3 KB

1234567891011121314151617181920212223242526
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans" xmlns:jee="http://www.springframework.org/schema/jee"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xmlns:context="http://www.springframework.org/schema/context"
  5. xsi:schemaLocation="
  6. http://www.springframework.org/schema/beans
  7. http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
  8. http://www.springframework.org/schema/jee
  9. http://www.springframework.org/schema/jee/spring-jee-3.1.xsd
  10. http://www.springframework.org/schema/context
  11. http://www.springframework.org/schema/context/spring-context-3.1.xsd">
  12. <context:property-placeholder location="classpath*:jdbc.properties"/>
  13. <import resource="classpath*:/spring/datasource_c3p0.xml" />
  14. <!--c3p0 oracle 数据源的 jdbc 信息配置-->
  15. <bean id="dataSource" parent="commonDataSourceConfig">
  16. <property name="driverClass" value="oracle.jdbc.driver.OracleDriver" />
  17. <property name="jdbcUrl" value="${jdbc.url}" />
  18. <property name="user" value="${jdbc.username}" />
  19. <property name="password" value="${jdbc.password}" />
  20. <property name="minPoolSize" value="1" />
  21. <property name="maxPoolSize" value="5" />
  22. </bean>
  23. </beans>