You can specify whether you want to initialize eagerly scoped beans using the interface:
When you use Micronaut in environments such as Serverless Functions, you will not have an Application class and instead you extend a Micronaut provided class. In those cases, Micronaut provides methods which you can override to enhance the
@ConfigurationReader beans such as or @ConfigurationProperties are singleton beans. If you want to eager init configuration, but keep other scoped beans creation lazy, use :
1 | Setting eager init to true initializes all configuration reader beans. |