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 -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -