You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In one of my projects, I'm using @ConfigurationProperties from Micronaut and that works very well... except when I put the configuration properties in an external configuration file and attempt to load the external configuration file using external-config grails plugin.
However, the application starts up without any issue, if I comment out "- classpath:my-external-config.yml" in application.yml and comment in "my.number: 42".
Using application.yml is not really an option for me as I wish to put the properties in external config files. It work with external propertiy files if I use the JVM arguments "-Dspring.config.additional-location" + "-Dmicronaut.config.files", but I strongly prefer to use the external-config grails plugin.
The text was updated successfully, but these errors were encountered:
In one of my projects, I'm using @ConfigurationProperties from Micronaut and that works very well... except when I put the configuration properties in an external configuration file and attempt to load the external configuration file using external-config grails plugin.
Here is a repo that reproduces the problem: https://github.com/andersaaberg/external-config-micronaut-configuration-property
If you start the application using
./gradlew bootRun
, then it fails on upstart because @ConfigurationProperties does not receive the configuration from the external configuration file external-config/my-external-config.ymlHowever, the application starts up without any issue, if I comment out "- classpath:my-external-config.yml" in application.yml and comment in "my.number: 42".
Using application.yml is not really an option for me as I wish to put the properties in external config files. It work with external propertiy files if I use the JVM arguments "-Dspring.config.additional-location" + "-Dmicronaut.config.files", but I strongly prefer to use the external-config grails plugin.
The text was updated successfully, but these errors were encountered: