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
{{ message }}
This repository was archived by the owner on Feb 23, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 23, 2023. It is now read-only.
Bean definitions with several constructors and constructor arguments cannot be instantiated #1015
The BeanInstanceExecutableSupplier uses the resolved factory method or constructor method information to instantiate to find the Executable to call for instantiation.
If no info is available at the bean definition level, we're trying to detect a suitable constructor - we're currently applying a simple resolution algorithm that detects a single constructor or a constructor annotated with @Autowired.
Short of reimplementing org.springframework.beans.factory.support.ConstructorResolver, we should improve this to support provided constructor arguments.
changed the title [-]Bean definitions with constructor arguments cannot be instantiated[/-][+]Bean definitions with several constructors and constructor arguments cannot be instantiated[/+]on Sep 8, 2021
Activity
[-]Bean definitions with constructor arguments cannot be instantiated[/-][+]Bean definitions with several constructors and constructor arguments cannot be instantiated[/+]Select appropriate constructor for bean instantiation
bclozel commentedon Sep 8, 2021
Closed with 40137b7
Select appropriate constructor for bean instantiation