Spring Aliasing
-
What's the practical meaning of Spring aliasing?
<bean id="testDataSource" ... /> <alias name="testDataSource" alias="dataSource"/>
I mean, the bin can be treated both on his id and on his as. But why?
-
Two bins with one name
spring
You can't. However, the first bin second can be closed with helpalias
♪ For example, you have two databases. One test and another industrial. You don't want to change the name of the fields in the bin every time you're tested. Here for help and comes.alias
♪ Plus, change of namealias
used to counteract. Things are rarely used, but still used.