mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-25 00:09:02 +00:00
introspect element type in case of incoming Collection/Map in order to not accidentally say canConvert=true (SPR-6564)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2671 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
+15
-1
@@ -5,7 +5,7 @@
|
||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
|
||||
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd">
|
||||
|
||||
<bean id="conversionService" class="org.springframework.core.convert.support.DefaultConversionService">
|
||||
<bean id="conversionService" class="org.springframework.context.support.ConversionServiceFactoryBean">
|
||||
<property name="converters">
|
||||
<bean class="org.springframework.context.conversionservice.StringToBarConverter" />
|
||||
</property>
|
||||
@@ -13,6 +13,20 @@
|
||||
|
||||
<bean id="testClient" class="org.springframework.context.conversionservice.TestClient">
|
||||
<property name="bool" value="true"/>
|
||||
<property name="resourceArray">
|
||||
<value>classpath:test.xml</value>
|
||||
</property>
|
||||
<property name="resourceList">
|
||||
<list>
|
||||
<value>classpath:test.xml</value>
|
||||
</list>
|
||||
</property>
|
||||
<property name="resourceMap">
|
||||
<map>
|
||||
<entry key="res1" value="classpath:test1.xml"/>
|
||||
<entry key="res2" value="classpath:test2.xml"/>
|
||||
</map>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean class="org.springframework.context.conversionservice.Bar">
|
||||
|
||||
Reference in New Issue
Block a user