From 343dda7da87a9ccb69fc91cff7cd51d8e8afa583 Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Tue, 10 Apr 2018 10:54:34 +0200 Subject: [PATCH] data connection configuration can be placed in /etc/minerva/db.properties --- persist/src/main/resources/dataSource.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/persist/src/main/resources/dataSource.xml b/persist/src/main/resources/dataSource.xml index 96e982f72a..5f6bc47991 100644 --- a/persist/src/main/resources/dataSource.xml +++ b/persist/src/main/resources/dataSource.xml @@ -9,7 +9,8 @@ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd"> - <context:property-placeholder location="classpath:db.properties" /> + <context:property-placeholder ignore-resource-not-found="true" location="classpath:db.properties,file:/etc/minerva/db.properties" /> + <!-- Data Source Declaration --> <bean id="DataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close"> -- GitLab