SpringSource Spring Framework tutorials and examples. Focusing on Spring 3 and above.
Similarly to lists, there are times when you will need to map to other types of collections. In this tip, I will outline what you need to do to wire sets, maps and properties. The key to remember is that you want to wire your bean to the same type that is being used in the class definition. So if your bean has a java.util.Set property to guarantee uniqueness in the collection, you want to use the same definition in the xml definition.
So for example, if you want to use a java.util.Set,