Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For generation, a special utility project was created with the name configuration-generator

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

...