Instantiate - 容器在 XML 文件里找到定义并实例化它们Populate properties - 使用 DI 填充属性Set Bean Name - If the bean implements BeanNameAware interface, spring passes the bean's id to setBeanName() method.Set Bean factory - If Bean implements BeanFactoryAware interface, spring passes the beanfactory to setBeanFactory() method.
singleton: Return a single bean instance per Spring IoC containerprototype: Return a new bean instance each time when requestedrequest: Return a single bean instance per HTTP requestsession: Return a single bean instance per HTTP sessionglobal-session: Return a single bean instance per global HTTP session默认的是 singleton
Lightweight: Spring is lightweight when it comes to size and transparency. The basic version of spring framework is around 2MB.Inversion of control (IOC): Loose coupling is achieved in spring using the technique Inversion of Control. The objects give their dependencies instead of creating or looking for dependent objects.
CompilationInitializationExecutionCleanup详细解释Compilation: When a browser asks for a JSP, the JSP engine first checks to see whether it needs to compile the page. If the page has never been compiled, or if the JSP has been modified since it was last compiled, the JSP engine compiles the page.编译的三个步骤:Parsing the JSP.