Setter Dependency Injection with Array of String

In some scenarios, we may need to inject an array of strings to an object. Consider the example where Person has hobbies In this case, we can use Array of String which stores the hobbies Let us see the same in spring through Setter Dependency Injection Create a class called Person It contains 3 attributes […]

Share this article on
< Previous Next >