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
[kafka][metrics] Fix bean conditional resolution order to prioritize user-defined beans over binder's conditional beans in a multi-binder scenario
This change modifies the loading order in DefaultBinderFactory.initializeBinderContextSimple
to ensure that user configuration classes specified via spring.main.sources are loaded before
binder configuration classes. This allows @ConditionalOnMissingBean annotations in the binder
configurations to properly detect user-provided beans.
Previously, when using KafkaBinderConfiguration with @ConditionalOnMissingBean(KafkaBinderMetrics.class),
even if the user had configured a custom KafkaBinderMetrics bean via spring.main.sources,
the condition would not work correctly because binder classes were loaded first.
Fixesgh-3114
Signed-off-by: ferblaca <[email protected]>
0 commit comments