diff --git a/src/main/java/de/deadlocker8/budgetmaster/Main.java b/src/main/java/de/deadlocker8/budgetmaster/Main.java index c937115a1f71d6f1e59b48fd91abe37da5ec6c6c..56388735abdc00bf9212b18e3af5995955c8b31a 100644 --- a/src/main/java/de/deadlocker8/budgetmaster/Main.java +++ b/src/main/java/de/deadlocker8/budgetmaster/Main.java @@ -59,7 +59,7 @@ public class Main implements ApplicationRunner { try { - LOGGER.warn("BudgetMaster settings file ({0}) is missing. A default file will be created. Please fill in your settings.", settingsPath); + LOGGER.warn("BudgetMaster settings file ({}) is missing. A default file will be created. Please fill in your settings.", settingsPath); Files.copy(Main.class.getClassLoader().getResourceAsStream("config/templates/settings.properties"), settingsPath, StandardCopyOption.REPLACE_EXISTING); System.exit(1); } diff --git a/src/main/java/de/deadlocker8/budgetmaster/utils/PropertiesConfiguration.java b/src/main/java/de/deadlocker8/budgetmaster/utils/PropertiesConfiguration.java index 52910f40f97a612bd0f506d2853d445c81440a56..17e72af4f324b6deb8aa7cb44c6a669521559bbb 100644 --- a/src/main/java/de/deadlocker8/budgetmaster/utils/PropertiesConfiguration.java +++ b/src/main/java/de/deadlocker8/budgetmaster/utils/PropertiesConfiguration.java @@ -13,7 +13,8 @@ import java.nio.file.Path; public class PropertiesConfiguration { @Bean - public PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { + public PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() + { PropertySourcesPlaceholderConfigurer properties = new PropertySourcesPlaceholderConfigurer(); Path settingsPath = SystemUtils.getApplicationSupportDirectoryPath(Localization.getString("folder"), "settings.properties"); properties.setLocation(new FileSystemResource(settingsPath.toString()));