Add typesafe method to get generic bean by name with type reference #34687
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: waiting-for-triage
An issue we've not yet triaged or decided on
Related to GH-34669, but it requires the bean name matched first, and throw
BeanNotOfRequiredTypeException
if the bean type doesn't match required type from type reference.Take codes in Spring Batch for example:
I'd like it could be rewrite to:
The text was updated successfully, but these errors were encountered: