Correct conversion from Resource[] with length 1 to Collection<Resource>

Fix GH-31693
This commit is contained in:
Yanming Zhou
2023-11-27 17:03:00 +08:00
committed by Juergen Hoeller
parent 4a6c3e8f5d
commit feef98b73c
3 changed files with 16 additions and 5 deletions

View File

@@ -24,6 +24,11 @@
<property name="resources" value="/org/springframework/context/support/test/context*.xml"/>
</bean>
<bean name="service3" class="org.springframework.context.support.Service">
<property name="resources" value="/org/springframework/context/support/test/contextA.xml"/>
<property name="resourceSet" value="/org/springframework/context/support/test/contextA.xml"/>
</bean>
<bean name="autowiredService" class="org.springframework.context.support.AutowiredService" autowire="byName"/>
<bean name="autowiredService2" class="org.springframework.context.support.AutowiredService" autowire="byType"/>