java - Creating parameterized Spring bean configuration -


is possible have parameterized bean template in can fill in place holders or pass arguments tell bean refer or value set?

<bean id='basebean' abstract='true' argument='arg1'>     <property...>     .     .     <property name="tablename" value='arg1'> </bean> <bean id="derived1" parent='basebean(table1)' >     .     . </bean> <bean id="derived2" parent='basebean(table2)' >  </bean> 

you can use propertyplaceholderconfigurer , define bean id's in properties file , control there.like use configure database properties.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -