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
Post a Comment