Answer the question
In order to leave comments, you need to log in
Spring. How to make an alias to another alias?
Let's say we have a bin:
<alias name="foo" alias="foo"/>
<bean id="foo" class="com.foofoo.foo"/>
<alias name="bar" alias="foo"/>
<bean id="bar" class="com.barbar.bar"/>
Answer the question
In order to leave comments, you need to log in
I added primary="true" to my bean and everything worked for me
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question