We can inject a bean in spring as below:
<bean id="injectCollection" class="CollectionInjection">
<property name="map">
<map>
<entry key="someValue">
<value>Hello World!</value>
</entry>
<entry key="someBean">
<ref local="oracle"/>
</entry>
</map>
</property>
</bean>
How do I inject if my key is a composite key consisting of two strings ?
How will it show in the properties file ?
Not only map, we can inject a list also with multiple strings/classes as key in a bean