1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
3
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
|
4
|
xmlns:context="http://www.springframework.org/schema/context"
|
5
|
xmlns:task="http://www.springframework.org/schema/task"
|
6
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
|
7
|
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd">
|
8
|
|
9
|
|
10
|
<bean id="repomanager.dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
|
11
|
<property name="driverClassName" value="${repomanager.db.driverClassName}" />
|
12
|
<property name="url" value="${repomanager.db.url}" />
|
13
|
<property name="username" value="${repomanager.db.username}" />
|
14
|
<property name="password" value="${repomanager.db.password}" />
|
15
|
<property name="maxIdle" value="10" />
|
16
|
<property name="maxActive" value="100" />
|
17
|
<property name="maxWait" value="10000" />
|
18
|
<property name="validationQuery" value="SELECT 1;" />
|
19
|
<property name="testOnBorrow" value="true" />
|
20
|
<property name="testOnReturn" value="true" />
|
21
|
<property name="testWhileIdle" value="true" />
|
22
|
<property name="timeBetweenEvictionRunsMillis" value="1200000" />
|
23
|
<property name="minEvictableIdleTimeMillis" value="1800000" />
|
24
|
<property name="numTestsPerEvictionRun" value="5" />
|
25
|
<property name="poolPreparedStatements" value="true" />
|
26
|
<property name="defaultAutoCommit" value="true" />
|
27
|
</bean>
|
28
|
|
29
|
<context:property-placeholder location="classpath*:/eu/**/application.properties" />
|
30
|
|
31
|
</beans>
|