Here is what I mean, see the following spring XML file:
<bean id = 'a' class="A">
<property name="mapProperty">
<map>
<entry key="key1"><value>value1</value></entry>
</map>
</property>
</bean>
And my class is as follows:
class A {
HashMap mapProperty
}
How can I indicate in the spring XML file that the Map to be entered is of type java.util.HashMap? Or can I provide a class name for the Map?
Please note: I cannot change class Ato use MapinsteadHashMap
Thanks in advance!
source
share