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 help alias♪ 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 name alias used to counteract. Things are rarely used, but still used.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2