Spring《五》集合的注入方式
List、Set、Map、Properties
1、List
<property name="msg">
<list>
<value>gf</value>
<value>gd</value>
<value>HelloWorld</value>
</list>
</property>
2、Set
<property name="msg">
<set>
<value>gf</value>
<value>gd</value>
<value>HelloWorld</value>
</set>
</property>
3、map
<property name="msg">
<map>
<entry key="gif">
<value>HelloWorld</value>
</entry>
<entry key="gd">
<value>HelloWorld</value>
</entry>
</map>
</property>
4、Properties
<property name="msg">
<props>
<prop key="gf">HelloWorld</prop>
<prop key="gd">HelloWorld</prop>
</props>
</property>