Skip to content

Instantly share code, notes, and snippets.

@gabanox
Created October 16, 2014 13:17
Show Gist options
  • Save gabanox/1edc841eedb0a739e3d6 to your computer and use it in GitHub Desktop.
Save gabanox/1edc841eedb0a739e3d6 to your computer and use it in GitHub Desktop.
<?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:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.1.xsd">
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
<property name="driverClassName">
<value>${jdbc.driverClassName}</value>
</property>
<property name="url">
<value>${jdbc.url}</value>
</property>
<property name="username">
<value>${jdbc.username}</value>
</property>
<property name="password">
<value>${jdbc.password}</value>
</property>
<property name="maxActive" value="10"/>
<property name="initialSize" value="10"/>
</bean>
<context:property-placeholder location="jdbc.properties" />
</beans>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment