mirror of
https://github.com/wisemapping/wisemapping-open-source.git
synced 2025-04-05 20:14:30 +08:00
23 lines
1.1 KiB
XML
23 lines
1.1 KiB
XML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||
|
http://www.springframework.org/schema/beans/spring-beans.xsd">
|
||
|
|
||
|
<bean id="wiseDataSource" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close">
|
||
|
<property name="driverClassName" value="${database.driver}"/>
|
||
|
<property name="url" value="${database.url}"/>
|
||
|
<property name="username" value="${database.username}"/>
|
||
|
<property name="password" value="${database.password}"/>
|
||
|
<property name="testOnBorrow" value="${database.validation.enabled}"/>
|
||
|
<property name="validationQuery" value="${database.validation.query}"/>
|
||
|
</bean>
|
||
|
|
||
|
<!-- Optional configuration for external connexion pool -->
|
||
|
<!-- <bean id="wiseDataSource" class="org.springframework.jndi.JndiObjectFactoryBean" >-->
|
||
|
<!-- <property name="jndiName">-->
|
||
|
<!-- <value>java:comp/env/jdbc/wisemapping</value>-->
|
||
|
<!-- </property>-->
|
||
|
<!-- </bean>-->
|
||
|
</beans>
|