The Spring Framework has bean support for the Collections. It provide list, set, map and props elements. Here in this tutorial you will see about the list elements which is used to set values inside the list.
CollegeBean.java
package collection.list.example;
|
StudentBean.java
package collection.list.example;
|
ListMain.java
package collection.list.example;
|
context.java
<!-- Spring List Property Example --> |
| College [lists=[1, Student [address=Delhi, name=satya], Student [address=delhi, name=ankit]]] |