mirror of
https://github.com/gmbrax/MediaManager-core.git
synced 2026-11-09 14:00:17 +00:00
Replace application.properties with config.properties:
- Renamed configuration file to `config.properties` for consistency. - Updated `MediaManagerApplication` to load the new configuration file. - Adjusted references in `README.md` and `.gitignore`.
This commit is contained in:
parent
86da601ad6
commit
885d5c95a4
@@ -40,9 +40,9 @@ public class MediaManagerApplication {
|
||||
private static void loadConfiguration() throws IOException {
|
||||
config = new Properties();
|
||||
try (InputStream input = MediaManagerApplication.class.getClassLoader()
|
||||
.getResourceAsStream("application.properties")) {
|
||||
.getResourceAsStream("config.properties")) {
|
||||
if (input == null) {
|
||||
throw new IOException("Unable to find application.properties");
|
||||
throw new IOException("Unable to find config.properties");
|
||||
}
|
||||
config.load(input);
|
||||
logger.info("Configuration loaded successfully");
|
||||
|
||||
Reference in New Issue
Block a user