You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Property binding performed in the child management context, for example through @EnableConfigurationProperties on a @ManagementContextConfiguration(ManagementContextType.CHILD) class, ignores the parent's environment prefix. It appears to be lost in ManagementContextFactory when creating the environment for the child context.
The text was updated successfully, but these errors were encountered:
Binding in the child context does not work correctly when an
environment prefix has been configured. The prefix is not applied
to the child context's Environment and, therefore, prefixed
environment variables are ignored during binding.
We can fix the problem by reusing the parent context's
ManagementServerProperties rather than binding them again in the
child context. Doing so will fix the problem reported in gh-45857
that was introduced in 020fd7b and will also avoid an unnecessary
second binding of the properties.
gh-45858 may fix the problem more generally by applying the prefix
to the child context's environment. This would benefit situations
where the properties need to be bound in the child context because
they haven't already been bound in the parent.
Closesgh-45847
Property binding performed in the child management context, for example through
@EnableConfigurationProperties
on a@ManagementContextConfiguration(ManagementContextType.CHILD)
class, ignores the parent's environment prefix. It appears to be lost inManagementContextFactory
when creating the environment for the child context.The text was updated successfully, but these errors were encountered: