- Spring 5.0 Cookbook
- Sherwin John Calleja Tragura
- 39字
- 2021-07-08 10:16:17
Injecting Collections and Properties
Spring containers allow injection of List, Set, Map, or Properties objects to other Spring-defined beans through <property> tags. The following recipe will distinguish between XML-based and JavaConfig context definitions when it comes to implementing type-safe injection.