mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
checkConfigurationClassCandidate explicitly skips factory method definitions
Issue: SPR-14603
This commit is contained in:
+1
-1
@@ -79,7 +79,7 @@ abstract class ConfigurationClassUtils {
|
||||
*/
|
||||
public static boolean checkConfigurationClassCandidate(BeanDefinition beanDef, MetadataReaderFactory metadataReaderFactory) {
|
||||
String className = beanDef.getBeanClassName();
|
||||
if (className == null) {
|
||||
if (className == null || beanDef.getFactoryMethodName() != null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user