Skip to content

Fix log message in ConfigurationClassBeanDefinitionReader #36453

@sbrannen

Description

@sbrannen

The following log message uses the beanName instead of the methodName when generating the fully-qualified method name; however, the beanName might be sourced from @Bean(name = ...) (or a registered ConfigurationBeanNameGenerator beginning with Spring Framework 7.0).

if (logger.isTraceEnabled()) {
logger.trace("Registering bean definition for @Bean method %s.%s()"
.formatted(configClass.getMetadata().getClassName(), beanName));
}

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions