attach

open fun attach(environment: Environment)

Attach a ConfigurationPropertySource support to the specified Environment. Adapts each PropertySource managed by the environment to a ConfigurationPropertySource and allows classic PropertySourcesPropertyResolver calls to resolve using configuration property names.

The attached resolver will dynamically track any additions or removals from the underlying Environment property sources.

Parameters

environment

the source environment (must be an instance of ConfigurableEnvironment)

See also