NoSuchBeanDefinitionException autowiring to collection with no matching types [SPR-6777] #11443
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: declined
A suggestion or change that we don't feel we should currently apply
type: enhancement
A general enhancement
Uh oh!
There was an error while loading. Please reload this page.
Scott Andrews opened SPR-6777 and commented
When autowiring to a collection, if there are no beans that match the collection's type, a NoSuchBeanDefinitionException is thrown saying at least one matching bean is required. In this case, I would rather have an empty list injected then the container fail to initialize.
Affects: 3.0 GA
Issue Links:
@Autowired
+@Qualifier
or@Inject
+@Named
The text was updated successfully, but these errors were encountered: