moved config files to dedicated dir

This commit is contained in:
s5260822 2025-03-18 20:38:32 +01:00
parent e0dde25b00
commit 37a300fa50
5 changed files with 3 additions and 5 deletions

View file

@ -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

View file

@ -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

View file

@ -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");