How do add a bean in spring application?
A bean can be added in spring application using :<beans>
<bean id=\"foo\" class=\"com.Foo\"/>
<bean id=\"bar\" class=\"com.Bar\"/>
</beans>
in the Spring configuration file. In the bean tag the id attribute specifies the bean name and the class attribute specifies the fully qualified class name.