In previous posts we have seen how to initialize any string or reference via property’s value tag or ref tag.In this post we will see how to initialize any collections in spring.
For configuring spring in your eclipse ide please refer hello world example

1.Country.java:

This is simple pojo class having some attributes so here country has name and list of states.

Create Country.java under package org.arpit.javapostsforlearning.Copy following content into Country.java.