Cannot inject List<String> even using @Named [SPR-13585] #18162
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Alexandre Navarro opened SPR-13585 and commented
Impossible to inject a Generic type (like
List<String>
) to create a@Bean
via an argument of the method even though with using@Named
.A full example to describe the problem:
For me, it should work. Tell if I did something wrong or if it exists a work around just via annotation on arguments of a
@Bean
method (I don't want to use Wrapper class of a GenericType or@Resource
the bean wanted in a field in the Configuration file like in the example).Affects: 4.2.2
Issue Links:
@Produces
(for Array/Map/Collection inject) ("is duplicated by")@Autowired
does not work for target bean of type CollectionReferenced from: commits 4a0fa69
The text was updated successfully, but these errors were encountered: