...
For generation, a special utility project was created with the name configuration-generator
Initially, there was support for the hocon format. To get acquainted with the syntax, you can follow the link
https://github.com/lightbend/config
Info |
---|
In version 0.0.9 added support for generating yaml files. Also retained support for the old format |
...
Run from CLI
To generate GlobalConfiguration class you need open a terminal and enter this command:
...
After that according on property source initialize GlobalConfiguration bean (GlobalConfigurationProvider)
Here is an example
...
how the files are located:
...
Usage example
After generation, this class with can be reused throughout the project
...