Depends-on in Spring

With this example we will show you how depends-on works in Spring. In spring application XML, if we need to initialize any bean before another bean, depends-on does this job. While creating bean we need to define depends-on attribute in bean. When a bean is typically dependent on another bean then we specify the dependent […]

Read More

Collection merging in Spring

With this example we will show you how to merge Collections in Spring. Since Spring 2.0, the container supports merging of collections. You can define <prop/>, <list/>, <map/> and <set/> of parent-style and then you can inherit the child-style element and override values of each type from parent collections. That is, the child collection’s values […]

Read More

1 2