Remember below for interviews.
<!--List-->
<property name="lists">
<list>
<value>1</value>
<ref bean="PersonBean"/>
<bean class="com.jbk.common.Person">
<property name="name" value="jbkList" />
<property name="address" value="address" />
<property name="age" value="28" />
</bean>
</list>
</property>
<!--Set-->
<property name="sets">
<set>
<value>1</value>
<ref bean="PersonBean" />
<bean class="com.jbk.common.Person">
<property name="name" value="jbkSet" />
<property name="address" value="address" />
<property name="age" value="28" />
</bean>
</set>
</property>
<!--Map-->
<property name="maps">
<map>
<entry key="Key 1" value="1" />
<entry key="Key 2" value-ref="PersonBean" />
<entry key="Key 3">
<bean class="com.jbk.common.Person">
<property name="name" value="jbkMap" />
<property name="address" value="address" />
<property name="age" value="28" />
</bean>
</entry>
</map>
</property>
<!--Properties-->
<property name="pros">
<props>
<prop key="admin">admin@jbk.com</prop>
<prop key="support">support@jbk.com</prop>
</props>
</property>
Spring has later given two option for configurations
Java annotations based.