Within the /config
folder Micronaut will search values within the following folders in order of precedence:
Folder | Description |
---|---|
| Configuration shared by all applications |
Configuration shared by all applications for the | |
Application specific configuration, example | |
Application specific configuration for an active Environment |
The value of APPLICATION_NAME
is whatever your have configured micronaut.application.name
to be in bootstrap.yml
.
To see this in action use the following curl command to store a property called with a value of myvalue
in the folder /config/application
.
If you now define a @Value("${foo.bar}")
or call environment.getProperty(..)
the value myvalue
will be resolved from Consul.