tusharlondhe londheAdmin wrote:Hi Guys,
I have a bean.xml
<bean id="User" class="com.module.spring.basic.User">
<property name="userName">
<value>ABCD</value>
</property>
</bean>
Now how to make this bean.xml dynamic so that I can pass user provided values.
Once you get the bean instance by using ctx.getBean("User"), then you can set dynamic name value as userBean.setUserName("User_New_Name") before using the hard coded name "ABCD".