java - Can we override the spring beans declared in one xml config in another config? -



java - Can we override the spring beans declared in one xml config in another config? -

i newbie spring question might have easy reply please bear me if i'm asking silly.

i have global spring config file want utilize in many applications , override properties of few beans differently in different applications. can suggest best way this?

for example, i've in global.xml.

<bean id="testinstance" class="testclass"> <property name="mem1" ref="val1"/> <property name="mem2" ref="val2"/> </bean>

now, want refer testinstance different spring config , utilize after overriding mem1. possible in spring? need utilize custom tags that?

you can override bean defined in xml in xml config. if want leverage @configuration same out of luck. spring not allow that.

https://jira.springsource.org/browse/spr-9567

java spring

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -