Spring promotes Dependency Injection (DI) in code. It gives
support for injecting not only objects but also collection of objects.
We can inject collections like- list, set, map etc. in Spring.
Following tags can be used for this purpose:
: This type is used for injecting a list of values. In a
duplicates are allowed.
property, duplicates are not allowed.
map. Name and value can be of any type that is allowed for a map.
name-value. It is like a properties file.