Load Micronaut application-*.yml files without instantiating beans #5975
-
Hello, I have a use case which falls slightly outside of Micronaut usual flow, and I'm having trouble figuring how to make it fit I want to
Is there a way to do this in Micronaut? To be more precise about my use case, I have an application which creates some kafka streams |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If you want to load config files (or do anything else) before Micronaut gets involved, the best way to do that is to invoke that code from your Depending on what it is you are going to do with the config values, there may be a better thing to do that doesn't require you doing anything before engaging Micronaut. |
Beta Was this translation helpful? Give feedback.
If you want to load config files (or do anything else) before Micronaut gets involved, the best way to do that is to invoke that code from your
main
method before starting Micronaut.Depending on what it is you are going to do with the config values, there may be a better thing to do that doesn't require you doing anything before engaging Micronaut.