Versions Compared

Key

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

...

Info

Where we connect GlobalConfiguration as a bean and get a subclass postgres() with all the setting for the database



...


PathResolver

In version 0.0.11 added the ability to change the values of parameters while the application is running

To use, you first need to generate the appropriate file

To generate use this command

Code Block
languagexml
cmd/app generate cfg-with-resolver

This command generates configuration class and config path resolver for application.yml

Next you have GlobalConfigurationPathResolver. You can use methods getValue and setNewValue. Both methods require the path attribute, for example (postgres.hikari.autoCommit)