**[Sébastien Deleuze](https://jira.spring.io/secure/ViewProfile.jspa?name=sdeleuze)** opened **[SPR-17272](https://jira.spring.io/browse/SPR-17272?redirect=false)** and commented Unlike `DependencyObjectProvider` which seems to support this use case, the `ObjectProvider` implementation returned by `DefaultListableBeanFactory#getBeanProvider(ResolvableType)` does not seems to support `List<Foo>` correctly. This test is green: ```java @Test public void registerBeanAndGetBeanProvider() { GenericApplicationContext context = new GenericApplicationContext(); context.registerBean(ViewResolver.class, () -> new MustacheViewResolver()); assertNotNull(context.getDefaultListableBeanFactory().getBeanProvider(ResolvableType.forClass(ViewResolver.class)).getIfAvailable()); } ``` This test is red: ```java @Test public void registerBeanAndGetBeanProviderList() { GenericApplicationContext context = new GenericApplicationContext(); context.registerBean(ViewResolver.class, () -> new MustacheViewResolver()); assertNotNull(context.getDefaultListableBeanFactory().getBeanProvider(ResolvableType.forClassWithGenerics(List.class, ViewResolver.class)).getIfAvailable()); } ``` This difference of behavior prevents [Kofu configuration](https://github.com/spring-projects/spring-fu/blob/9f452e068e53442d833af509a80e253f2585ee16/kofu/src/main/kotlin/org/springframework/boot/autoconfigure/web/reactive/ReactiveWebServerConfiguration.kt#L89) and Dave Syer [FuncApplication](https://github.com/dsyer/spring-boot-micro-apps/blob/master/src/main/java/com/example/func/FuncApplication.java#L339) to instantiate `WebFluxAutoConfiguration.WebFluxConfig` in a functional way and get view resolution support. --- **Affects:** 5.1 RC3 **Issue Links:** - #16046 ObjectProvider iterable/stream access for "beans of type" resolution in `@Bean` methods - #21731 Autowiring inconsistency: `@Qualifier` works with HashMap but not with Map **Referenced from:** commits https://github.com/spring-projects/spring-framework/commit/65c8fa400f7b6b42c97468eba9c5f12beaccac41, https://github.com/spring-projects/spring-framework/commit/41d4cb5cbf608a3ef6b0585f675091c427dba5d7, https://github.com/spring-projects/spring-framework/commit/75627617c971333e60a9635f4b762853e3989da5 0 votes, 8 watchers