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)); |
|
} |
The following log message uses the
beanNameinstead of themethodNamewhen generating the fully-qualified method name; however, thebeanNamemight be sourced from@Bean(name = ...)(or a registeredConfigurationBeanNameGeneratorbeginning with Spring Framework 7.0).spring-framework/spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassBeanDefinitionReader.java
Lines 305 to 308 in cc5c7ba