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 set elements which is used to set values inside the set.
CollegeBean.java
package collection.set.example;
|
StudentBean.java
package collection.set.example;
|
ListMain.java
package collection.set.example;
|
context.java
<!-- Spring Sets Property Example --> |
| College [sets=[1, Student [address=Delhi, name=satya], Student [address=delhi, name=ankit]]] |
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.