Spring Profile-Specific Configurations in Peppol-reporting #9
Replies: 1 comment
-
Well, because I am not using Spring, I am also not using the configuration system of Spring :) My approach for local test properties is to use the file |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm currently utilizing this library within a Spring application. I've configured the database connection settings in the 'application.properties' file, and they function correctly. However, I'm encountering an issue when implementing Spring profile management. Despite having an active profile, the library continues to read the configuration solely from the 'application.properties' file, neglecting the profile-specific settings.
I'm curious whether I might be misunderstanding something or if this behavior aligns with expectations. Is there a recommended method to ensure the library reads configurations specific to the active profile? Currently, I've devised a workaround using the MultiConfigurationValueProvider class and the addConfigurationSource() method, but I suspect this might not be the intended approach.
Beta Was this translation helpful? Give feedback.
All reactions