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:
Gustavo Henrique Santos Souza de Miranda
2025-11-13 03:25:33 -03:00
parent 86da601ad6
commit 885d5c95a4
4 changed files with 8 additions and 8 deletions
@@ -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");