Initializing the Environment
Initializing the Environment
The active environment names serve the purpose of allowing loading different configuration files depending on the environment and also using the annotation to conditionally load beans or bean @Configuration packages.
In addition, Micronaut will attempt to detect the current environments. For example within a Spock or JUnit test the environment will be automatically active.
Specifying environments
The above activates environments called and .