What is IOC in spring?

Answer Posted / sujeev

IOC(Inversion of control)is a technique that allows object
configuration to be moved out of code and into a
configuration file. With Spring IOC, this is typically done
with an XML file.
The steps to use Spring IOC are:

1. Write Java Bean classes, with getter and setter methods
for each property to be configured by Spring.
2. Create an XML file that describes the Java Beans to be
configured.
3. Use an XMLBeanFactory to create configured beans. There
are other ways to read bean descriptions, but using an
XmlBeanFactory is more common.

Is This Answer Correct ?    80 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword

1691


What is the use of the list interface in the java collection? : java collections

681


What are the different types of collections views being provided by the map interface? : java collections

688


Hi we have an urgent requirement for Java/J2ee technical lead position & also looking for "Java Guidewire claimcentre" experienced professional for Bangalore location if interested can reach srisanh@gmail.com

2625


What is the Spring2.5 MVC Navigation flow?

5539






Which sorting algorithm is used by collections.sort() in java ?

628


What are the queues in the java collection framework? : java collections

630


What are the uses of the set interfaces in the java collections? : java collections

629


What are the types of interface used in the java collections? : java collections

668


What are the differences between the java collection and the java list? : java collections

698


can u draw class/object diagram for ATM

5657


What are the different types of classes implemented in the set interfaces? : java collections

709


What are the different types of features of the java collections framework? : java collections

669


HOW MUCH PERCENTAGE WE DEDUCT FOR OUR SUPPLIERS OR OTHER PROFESSIONALS

1654


What are maps interfaces in the java collections? : java collections

662