This tip shows the way to set the property of the bean by constructor injection.
The following code is used for setting the property.Code:public class sample{
String name;
public sample(String a)
{
name = a;
}
}
Code:<bean id="bean1" class="sample">
<constructor-arg>
<value>Sample Bean Value</value>
</constructor-arg>
</bean>
