Setter Injection with collections

When we are creating spring bean, the bean may use some collections as dependency having some primitives and objects. The collections are:

1. List

2. Set

3. Map

Except above 3 types of collections, if the spring bean class uses any other type of collection as dependency, then spring container does not inject that collection object to the spring bean.


About the Author



Silan Software is one of the India's leading provider of offline & online training for Java, Python, AI (Machine Learning, Deep Learning), Data Science, Software Development & many more emerging Technologies.

We provide Academic Training || Industrial Training || Corporate Training || Internship || Java || Python || AI using Python || Data Science etc





 PreviousNext