Wiring maps and properties

I was reading folowing line and I did not understand clearly.

Wiring maps
You can wire java util.Map collections in Spring using the <map> element. Map
collections are somewhat different than Lists, Sets. Each entry in a Map is
made up of a key and a value defined by the <entry> element:
The value of a map <entry>, just as with <list> and <set>, can be any valid property

Again, this includes <value>, <ref>, <list>, or even another <map>.
When wiring an <entry>, notice that the key attribute will also be a String.
This is a slight limitation over the full functionality of java.util.Map, which
allows any object to be the key of a map entry. However, this limitation doesn’t
often present a problem, as Maps are typically keyed with Strings anyway.
Wiring properties
A java.util.Properties collection is the final type of collection that can be wired
in Spring. It is wired with the <props> element. Each element of a properties collection
is wired with the <prop> element.
In many ways, <props> works similarly to <map>. The big difference is that the
value of a <prop> entry is always a String, so there is no need to use the..

Any ideas, resources,sample code,links, highly appreciated. thanks in advance.
Who is Participating?
objectsConnect With a Mentor Commented:

for properties the value must also be a string
Its just saying the key should be a String
gudii9Author Commented:
>>Its just saying the key should be a String

for Property or Map. please advise
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.