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