I'm new one, just start learning framework, in the spring framework, through the spring. The XML file configuration achieved by a configuration file to create the object, but the integration, spring, for springmvc and mybatis, I don't see where is under the framework of integrated the SSM embodies the ioc thought, have a great god can you help me answer my confusion, very grateful,
CodePudding user response:
Ioc and DI is actually a kind of thought, is not a specific technology, when we are in the build SSM project is used to this kind of thought,DI (DI) of thought can be reflected on creating a database connection, the whole project wear a connection is not when the need to connect the new one connection, but the project at the time of configuration to create a good connection, when to use DI to the program to use, and program at what time and how it developers don't know, but finally realized functions,
Spring provides a lot of the realization of the IOC container, such as XmlBeanFactory, ClasspathXmlApplicationContext,
Is Spring ApplicationContext provides a senior IOC container