首先在您的内定义这样的地图
applicationContext.xml:
<util:list id="list1"> <value>foo@bar.com</value> <value>foo1@bar.com</value></util:list><util:list id="list2"> <value>foo2@bar.com</value> <value>foo3@bar.com</value></util:list><util:map id="emailMap" value-type="java.util.List"> <!-- Map between String key and List --> <entry key="entry1" value-ref="list1" /> <entry key="entry2" value-ref="list2" /> ...</util:map>
然后像这样在您的任何bean中使用此Map:
<bean id="myBean" > <property name="emailMap" ref="emailMap" /></bean>



