FactoryBean registered with explicit target type cannot be autowired by type #23561
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: regression
A bug that is also a regression
Milestone
I'm trying upgrade spring from 5.1.4.RELEASE to 5.2.0.RC1, some tests with
@Autowired
fails caused byNoSuchBeanDefinitionException
, I found there is a regression ofBeanFactory::getBean(Class<T> requiredType)
. and useinstead of
will success.
here is the full test case
The text was updated successfully, but these errors were encountered: