adspace


What is the syntax to add a bean in the spring application?

Answer Posted / Yatendra Kumar Nagar

The syntax to add a bean in Spring Application Context is as follows: <bean id="<bean-id>" class="<fully-qualified-class-name>" />. The bean can also be defined using XML namespace aliases or Java-based configuration.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you inject java collection in spring?

518


What is difference between @controller and @restcontroller in spring?

556


What is lazy class?

490