...
Info |
---|
All comands related to generation you can find in this file cmd/app |
...
Flow
During launching spring application according on all active profile all config files merge to
GlobalConfiguration instance and save as a map to spring property source (it happens in PropertySourcesApplicationContextInitializer)
After that according on property source initialize GlobalConfiguration bean (GlobalConfigurationProvider)
...
Usage example
After generation, this class with can be reused throughout the project
...
Info |
---|
Where we connect GlobalConfiguration as a bean and get a subclass postgres() with all the setting for the database |
Flow
...