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 props elements which is used to set values into the properties.
CollegeBean.java
package collection.props.example;
|
PropsMain.java
package collection.props.example;
|
context.java
<!-- Spring Props --> |
| College [Props={roll=100, name=satya}] |