spring bean class
Posted on 2011-03-11
While defining the beans in spring-config.xml I see the id and class, scope, constructor-arg, ref-bean, property-name, value etc attributes. What does the class represents. Also what other attributes represents.I am not clear on which attribute to use in which scenario and how to use. Also how to define for constructor injection, how to define for setter injection and how to inject other bean or custom object. Any ideas, suggestions, sample code. resources, links highly appreciated.Thanks in advance.