Can we create multiple beans using same java class in Spring configuration file?
<beans ....
<bean name="customeBeanInstance1" class="model.CustomBean">
<property name="name" value="customBeanOne"/>
</bean>
<bean name="customeBeanInstance2" class="model.CustomBean">
<property name="name" value="customBeanTwo"/>
</bean> >
</beans>
If yes, Then how wiring is going to work?
What is the practical use of such configuration?
Aucun commentaire:
Enregistrer un commentaire