moved config files to dedicated dir
This commit is contained in:
parent
e0dde25b00
commit
37a300fa50
5 changed files with 3 additions and 5 deletions
|
@ -60,9 +60,7 @@ public class MongoDBHandler {
|
|||
|
||||
|
||||
public MongoDBHandler() {
|
||||
// Load the MongoDB configuration from the properties file
|
||||
String propertiesFilePath = "config/database.properties";
|
||||
// Set loglevel for slf4j to avoid spam
|
||||
// Set loglevel for slf4j to avoid spam // TODO: Fix this (optional)
|
||||
System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "error");
|
||||
Properties mongoProperties = PropertiesUtils.readPropertiesFromResource(propertiesFileName);
|
||||
// Zugangsdaten
|
||||
|
|
|
@ -13,7 +13,7 @@ import java.util.Properties;
|
|||
*/
|
||||
public class JavalinConfig extends Properties {
|
||||
|
||||
private static final String propertiesFileName = "javalin.properties";
|
||||
private static final String propertiesFileName = "config/javalin.properties";
|
||||
|
||||
/**
|
||||
* Default Constructor
|
||||
|
|
|
@ -51,7 +51,7 @@ public abstract class PPRUtils {
|
|||
* @param mongoFactory Factory für die MongoDB-Objekte
|
||||
*/
|
||||
public static void parlamentExplorerInit(FileObjectFactory xmlFactory, MongoObjectFactory mongoFactory) {
|
||||
Properties xmlProperties = PropertiesUtils.readPropertiesFromResource("xml.properties");
|
||||
Properties xmlProperties = PropertiesUtils.readPropertiesFromResource("config/xml.properties");
|
||||
|
||||
// MdB lesen: MDBs werden nur dann gelesen und persistiert, wenn die Collection noch leer ist
|
||||
String mdbUrl = xmlProperties.getProperty("mdb_url");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue